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