17 references to ERR_StaticMemberCantBeReadOnly
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (1)
1996or ErrorCode.ERR_StaticMemberCantBeReadOnly
Symbols\Source\SourceEventSymbol.cs (1)
595diagnostics.Add(ErrorCode.ERR_StaticMemberCantBeReadOnly, location, this);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
898diagnostics.Add(ErrorCode.ERR_StaticMemberCantBeReadOnly, location, this);
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
556diagnostics.Add(ErrorCode.ERR_StaticMemberCantBeReadOnly, location, this);
Symbols\Source\SourcePropertySymbolBase.cs (1)
1091diagnostics.Add(ErrorCode.ERR_StaticMemberCantBeReadOnly, location, this);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
FieldKeywordTests.cs (6)
4933Diagnostic(ErrorCode.ERR_StaticMemberCantBeReadOnly, "P1").WithArguments("S.P1").WithLocation(3, 28), 4936Diagnostic(ErrorCode.ERR_StaticMemberCantBeReadOnly, "Q1").WithArguments("S.Q1").WithLocation(4, 28), 4939Diagnostic(ErrorCode.ERR_StaticMemberCantBeReadOnly, "Q2").WithArguments("S.Q2").WithLocation(5, 28), 4942Diagnostic(ErrorCode.ERR_StaticMemberCantBeReadOnly, "Q4").WithArguments("S.Q4").WithLocation(6, 28), 4945Diagnostic(ErrorCode.ERR_StaticMemberCantBeReadOnly, "get").WithArguments("S.Q6.get").WithLocation(7, 33), 4948Diagnostic(ErrorCode.ERR_StaticMemberCantBeReadOnly, "set").WithArguments("S.Q8.set").WithLocation(8, 38));
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));