13 references to ERR_InstanceMemberInStaticClass
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (1)
1057or ErrorCode.ERR_InstanceMemberInStaticClass
Symbols\Source\SourceEventSymbol.cs (1)
656diagnostics.Add(ErrorCode.ERR_InstanceMemberInStaticClass, location, Name);
Symbols\Source\SourceFieldSymbol.cs (1)
66diagnostics.Add(ErrorCode.ERR_InstanceMemberInStaticClass, ErrorLocation, this);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
942diagnostics.Add(ErrorCode.ERR_InstanceMemberInStaticClass, location, Name);
Symbols\Source\SourcePropertySymbolBase.cs (1)
1149ErrorCode errorCode = isIndexer ? ErrorCode.ERR_IndexerInStaticClass : ErrorCode.ERR_InstanceMemberInStaticClass;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Symbols\SymbolErrorTests.cs (8)
13083Diagnostic(ErrorCode.ERR_InstanceMemberInStaticClass, "i").WithArguments("NS.Goo.i"), 13086Diagnostic(ErrorCode.ERR_InstanceMemberInStaticClass, "P").WithArguments("NS.Goo.P"), 13089Diagnostic(ErrorCode.ERR_InstanceMemberInStaticClass, "E").WithArguments("E"), 13092Diagnostic(ErrorCode.ERR_InstanceMemberInStaticClass, "M").WithArguments("M"), 13095Diagnostic(ErrorCode.ERR_InstanceMemberInStaticClass, "field").WithArguments("NS.Bar<T>.field"), 13098Diagnostic(ErrorCode.ERR_InstanceMemberInStaticClass, "Q").WithArguments("NS.Bar<T>.Q"), 13101Diagnostic(ErrorCode.ERR_InstanceMemberInStaticClass, "E").WithArguments("E"), 13110Diagnostic(ErrorCode.ERR_InstanceMemberInStaticClass, "M").WithArguments("M"),