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