26 references to ERR_ParameterIsStaticClass
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (2)
1007
case ErrorCode.
ERR_ParameterIsStaticClass
:
2388
=> useWarning ? ErrorCode.WRN_ParameterIsStaticClass : ErrorCode.
ERR_ParameterIsStaticClass
;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9)
Semantics\BindingTests.cs (2)
1978
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "S").WithArguments("S").WithLocation(4, 20),
1981
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "S").WithArguments("S").WithLocation(5, 20),
Semantics\FunctionPointerTests.cs (1)
4016
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C").WithArguments("C").WithLocation(4, 22),
Semantics\LambdaTests.cs (2)
576
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "x").WithArguments("System.GC").WithLocation(6, 15));
597
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "StaticClass").WithArguments("StaticClass").WithLocation(7, 20));
Semantics\OutVarTests.cs (2)
23023
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "StaticType").WithArguments("Cls.StaticType").WithLocation(9, 29),
32096
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "StaticType").WithArguments("StaticType").WithLocation(9, 41),
Semantics\RecordStructTests.cs (1)
1519
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C2").WithArguments("C2").WithLocation(12, 5),
Semantics\RecordTests.cs (1)
1263
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C2").WithArguments("C2").WithLocation(12, 5),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (15)
Symbols\CheckedUserDefinedOperatorsTests.cs (4)
408
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C").WithArguments("C").WithLocation(4, 39 + op.Length)
1581
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C").WithArguments("C").WithLocation(4, 40),
1584
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C").WithArguments("C").WithLocation(4, 45)
2803
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C").WithArguments("C").WithLocation(4, 49)
Symbols\SymbolErrorTests.cs (11)
13164
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C").WithArguments("C"),
13488
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C").WithArguments("NS.C").WithLocation(16, 23),
13491
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "D<T>").WithArguments("NS.D<T>").WithLocation(22, 25));
13506
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "S").WithArguments("S").WithLocation(4, 5));
13529
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "S").WithArguments("S").WithLocation(2, 19),
13532
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "S").WithArguments("S").WithLocation(7, 19),
13535
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "S").WithArguments("S").WithLocation(8, 28),
13538
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "p").WithArguments("S").WithLocation(9, 19),
13541
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "p").WithArguments("S").WithLocation(10, 18));
13629
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "set").WithArguments("S").WithLocation(6, 27));
14716
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C").WithArguments("C"),