41 references to ERR_ParameterIsStaticClass
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (2)
1069
or ErrorCode.
ERR_ParameterIsStaticClass
2610
=> 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),
10558
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C1").WithArguments("C1").WithLocation(42, 37),
10652
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C1").WithArguments("C1").WithLocation(38, 39 - (op == ">>>" ? 0 : 1)),
10814
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C1").WithArguments("C1").WithLocation(800, 38),
10820
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C1").WithArguments("C1").WithLocation(801, 38),
10982
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C1").WithArguments("C1").WithLocation(800, 38),
10988
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C1").WithArguments("C1").WithLocation(801, 38),
11150
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C1").WithArguments("C1").WithLocation(800, 37),
11156
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C1").WithArguments("C1").WithLocation(801, 37),
Semantics\ExtensionTests.cs (2)
3845
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "Extensions").WithArguments("Extensions").WithLocation(3, 15));
3866
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)
13312
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C").WithArguments("C"),
13636
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C").WithArguments("NS.C").WithLocation(16, 23),
13639
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "D<T>").WithArguments("NS.D<T>").WithLocation(22, 25));
13654
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "S").WithArguments("S").WithLocation(4, 5));
13677
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "S").WithArguments("S").WithLocation(2, 19),
13680
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "S").WithArguments("S").WithLocation(7, 19),
13683
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "S").WithArguments("S").WithLocation(8, 28),
13686
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "p").WithArguments("S").WithLocation(9, 19),
13689
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "p").WithArguments("S").WithLocation(10, 18));
13777
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "set").WithArguments("S").WithLocation(6, 27));
14864
Diagnostic(ErrorCode.
ERR_ParameterIsStaticClass
, "C").WithArguments("C"),