11 references to ERR_StaticMemberCantBeReadOnly
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (1)
1939case ErrorCode.ERR_StaticMemberCantBeReadOnly:
Symbols\Source\SourceEventSymbol.cs (1)
532diagnostics.Add(ErrorCode.ERR_StaticMemberCantBeReadOnly, location, this);
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (1)
396diagnostics.Add(ErrorCode.ERR_StaticMemberCantBeReadOnly, location, this);
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
554diagnostics.Add(ErrorCode.ERR_StaticMemberCantBeReadOnly, location, this);
Symbols\Source\SourcePropertySymbolBase.cs (1)
858diagnostics.Add(ErrorCode.ERR_StaticMemberCantBeReadOnly, location, this);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\ReadOnlyStructsTests.cs (6)
1456Diagnostic(ErrorCode.ERR_StaticMemberCantBeReadOnly, "M").WithArguments("S.M()").WithLocation(5, 32)); 1507Diagnostic(ErrorCode.ERR_StaticMemberCantBeReadOnly, "get").WithArguments("S.P.get").WithLocation(7, 18)); 1524Diagnostic(ErrorCode.ERR_StaticMemberCantBeReadOnly, "P").WithArguments("S.P").WithLocation(5, 32)); 1729Diagnostic(ErrorCode.ERR_StaticMemberCantBeReadOnly, "P1").WithArguments("S.P1").WithLocation(4, 32), 1732Diagnostic(ErrorCode.ERR_StaticMemberCantBeReadOnly, "get").WithArguments("S.P2.get").WithLocation(5, 37)); 2291Diagnostic(ErrorCode.ERR_StaticMemberCantBeReadOnly, "E").WithArguments("S1.E").WithLocation(6, 52));