22 references to ERR_VarDeclIsStaticClass
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Patterns.cs (1)
754
Error(diagnostics, ErrorCode.
ERR_VarDeclIsStaticClass
, typeSyntax, patternType);
Binder\Binder_Statements.cs (2)
849
Error(diagnostics, ErrorCode.
ERR_VarDeclIsStaticClass
, typeSyntax, declType.Type);
1038
Error(localDiagnostics, ErrorCode.
ERR_VarDeclIsStaticClass
, typeSyntax, initializerType);
Errors\ErrorFacts.cs (1)
1071
or ErrorCode.
ERR_VarDeclIsStaticClass
Symbols\Source\SourceMemberFieldSymbol.cs (1)
57
diagnostics.Add(ErrorCode.
ERR_VarDeclIsStaticClass
, this.ErrorLocation, type);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
Semantics\OutVarTests.cs (3)
23085
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "StaticType").WithArguments("Cls.StaticType").WithLocation(6, 19)
32152
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "x2").WithArguments("StaticType").WithLocation(5, 31),
32158
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "x1").WithArguments("StaticType").WithLocation(3, 24)
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)
Semantics\RecordTests.cs (2)
1313
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "f6").WithArguments("C2").WithLocation(13, 15),
1512
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "f6").WithArguments("C2").WithLocation(12, 22),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\RecordStructTests.cs (2)
1638
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "f6").WithArguments("C2").WithLocation(13, 15),
1785
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)
11803
new ErrorDescription { Code = (int)ErrorCode.
ERR_VarDeclIsStaticClass
, Line = 10, Column = 9 }});
11866
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "SC").WithArguments("SC"),
11870
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "var").WithArguments("SC"));
11882
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "sc2").WithArguments("SC"),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\SymbolErrorTests.cs (3)
13203
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "C").WithArguments("C"),
13563
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "Y").WithArguments("NS.C"),
13566
Diagnostic(ErrorCode.
ERR_VarDeclIsStaticClass
, "Z").WithArguments("NS.D<int>"),