22 references to ERR_VarDeclIsStaticClass
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Patterns.cs (1)
744
Error(diagnostics, ErrorCode.
ERR_VarDeclIsStaticClass
, typeSyntax, patternType);
Binder\Binder_Statements.cs (2)
850
Error(diagnostics, ErrorCode.
ERR_VarDeclIsStaticClass
, typeSyntax, declType.Type);
1039
Error(localDiagnostics, ErrorCode.
ERR_VarDeclIsStaticClass
, typeSyntax, initializerType);
Errors\ErrorFacts.cs (1)
1009
case ErrorCode.
ERR_VarDeclIsStaticClass
:
Symbols\Source\SourceMemberFieldSymbol.cs (1)
56
diagnostics.Add(ErrorCode.
ERR_VarDeclIsStaticClass
, this.ErrorLocation, type);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Semantics\PatternMatchingTests.cs (1)
3391
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "StaticType").WithArguments("StaticType").WithLocation(8, 18)
Semantics\PatternMatchingTests_Global.cs (1)
6294
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "x1").WithArguments("StaticType").WithLocation(2, 28)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\OutVarTests.cs (3)
23026
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "StaticType").WithArguments("Cls.StaticType").WithLocation(6, 19)
32093
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "x2").WithArguments("StaticType").WithLocation(5, 31),
32099
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "x1").WithArguments("StaticType").WithLocation(3, 24)
Semantics\RecordStructTests.cs (2)
1574
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "f6").WithArguments("C2").WithLocation(13, 15),
1714
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "f6").WithArguments("C2").WithLocation(12, 22),
Semantics\RecordTests.cs (2)
1318
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "f6").WithArguments("C2").WithLocation(13, 15),
1457
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "f6").WithArguments("C2").WithLocation(12, 22),
Semantics\SemanticAnalyzerTests.cs (1)
197
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "D1").WithArguments("D1").WithLocation(7, 9),
Semantics\SemanticErrorTests.cs (4)
11799
new ErrorDescription { Code = (int)ErrorCode.
ERR_VarDeclIsStaticClass
, Line = 10, Column = 9 }});
11862
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "SC").WithArguments("SC"),
11866
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "var").WithArguments("SC"));
11878
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "sc2").WithArguments("SC"),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\SymbolErrorTests.cs (3)
13055
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "C").WithArguments("C"),
13415
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "Y").WithArguments("NS.C"),
13418
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "Z").WithArguments("NS.D<int>"),