14 references to ERR_RefReadonlyLocal
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
2706
return ErrorCode.
ERR_RefReadonlyLocal
;
Errors\ErrorFacts.cs (1)
1207
case ErrorCode.
ERR_RefReadonlyLocal
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenReadonlyStructTests.cs (1)
645
Diagnostic(ErrorCode.
ERR_RefReadonlyLocal
, "this").WithArguments("this").WithLocation(32, 26),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Semantics\PrimaryConstructorTests.cs (2)
14436
Diagnostic(ErrorCode.
ERR_RefReadonlyLocal
, "x").WithArguments("x").WithLocation(4, 34)
14462
Diagnostic(ErrorCode.
ERR_RefReadonlyLocal
, "x.F").WithArguments("x.F").WithLocation(4, 34)
Semantics\ReadOnlyStructsTests.cs (6)
161
Diagnostic(ErrorCode.
ERR_RefReadonlyLocal
, "e").WithArguments("e").WithLocation(46, 16)
225
Diagnostic(ErrorCode.
ERR_RefReadonlyLocal
, "this").WithArguments("this").WithLocation(9, 16),
228
Diagnostic(ErrorCode.
ERR_RefReadonlyLocal
, "this").WithArguments("this").WithLocation(15, 16));
257
Diagnostic(ErrorCode.
ERR_RefReadonlyLocal
, "this").WithArguments("this").WithLocation(15, 16));
283
Diagnostic(ErrorCode.
ERR_RefReadonlyLocal
, "this").WithArguments("this").WithLocation(12, 24));
319
Diagnostic(ErrorCode.
ERR_RefReadonlyLocal
, "f2").WithArguments("f2").WithLocation(21, 16));
Semantics\RefLocalsAndReturnsTests.cs (1)
3364
Diagnostic(ErrorCode.
ERR_RefReadonlyLocal
, "this").WithArguments("this").WithLocation(6, 26)
Semantics\SemanticErrorTests.cs (2)
14876
Diagnostic(ErrorCode.
ERR_RefReadonlyLocal
, "this").WithArguments("this"),
14878
Diagnostic(ErrorCode.
ERR_RefReadonlyLocal
, "this").WithArguments("this"));