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