41 references to ERR_ParameterIsStaticClass
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (2)
1070
or ErrorCode.
ERR_ParameterIsStaticClass
2615
=> useWarning ? ErrorCode.WRN_ParameterIsStaticClass : ErrorCode.
ERR_ParameterIsStaticClass
;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (17)
Semantics\ExtensionOperatorsTests.cs (12)
161
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C1").WithArguments("C1").WithLocation(41, 37),
260
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C1").WithArguments("C1").WithLocation(33, 38),
409
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C1").WithArguments("C1").WithLocation(800, 42),
415
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C1").WithArguments("C1").WithLocation(801, 43),
10642
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C1").WithArguments("C1").WithLocation(42, 37),
10736
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C1").WithArguments("C1").WithLocation(38, 39 - (op == ">>>" ? 0 : 1)),
10898
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C1").WithArguments("C1").WithLocation(800, 38),
10904
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C1").WithArguments("C1").WithLocation(801, 38),
11066
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C1").WithArguments("C1").WithLocation(800, 38),
11072
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C1").WithArguments("C1").WithLocation(801, 38),
11234
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C1").WithArguments("C1").WithLocation(800, 37),
11240
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C1").WithArguments("C1").WithLocation(801, 37),
Semantics\ExtensionTests.cs (2)
4017
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "Extensions").WithArguments("Extensions").WithLocation(3, 15));
4038
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C").WithArguments("C").WithLocation(2, 11));
Semantics\OutVarTests.cs (2)
23082
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "StaticType").WithArguments("Cls.StaticType").WithLocation(9, 29),
32155
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "StaticType").WithArguments("StaticType").WithLocation(9, 41),
Semantics\RecordTests.cs (1)
1257
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C2").WithArguments("C2").WithLocation(12, 5),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\BindingTests.cs (2)
2011
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "S").WithArguments("S").WithLocation(4, 20),
2014
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "S").WithArguments("S").WithLocation(5, 20),
Semantics\FunctionPointerTests.cs (1)
4037
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C").WithArguments("C").WithLocation(4, 22),
Semantics\LambdaTests.cs (2)
578
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "x").WithArguments("System.GC").WithLocation(6, 15));
599
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "StaticClass").WithArguments("StaticClass").WithLocation(7, 20));
Semantics\RecordStructTests.cs (2)
1524
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C2").WithArguments("C2").WithLocation(12, 5),
1582
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C2").WithArguments("C2").WithLocation(12, 5),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (15)
Symbols\CheckedUserDefinedOperatorsTests.cs (4)
433
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C").WithArguments("C").WithLocation(4, 39 + op.Length)
1606
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C").WithArguments("C").WithLocation(4, 40),
1609
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C").WithArguments("C").WithLocation(4, 45)
2828
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C").WithArguments("C").WithLocation(4, 49)
Symbols\SymbolErrorTests.cs (11)
13323
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C").WithArguments("C"),
13647
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C").WithArguments("NS.C").WithLocation(16, 23),
13650
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "D<T>").WithArguments("NS.D<T>").WithLocation(22, 25));
13665
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "S").WithArguments("S").WithLocation(4, 5));
13688
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "S").WithArguments("S").WithLocation(2, 19),
13691
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "S").WithArguments("S").WithLocation(7, 19),
13694
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "S").WithArguments("S").WithLocation(8, 28),
13697
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "p").WithArguments("S").WithLocation(9, 19),
13700
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "p").WithArguments("S").WithLocation(10, 18));
13788
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "set").WithArguments("S").WithLocation(6, 27));
14875
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C").WithArguments("C"),