32 references to WRN_RefReadonlyNotVariable
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Expressions.cs (1)
3933
ErrorCode.
WRN_RefReadonlyNotVariable
,
Binder\Binder_InterpolatedString.cs (1)
837
or ErrorCode.
WRN_RefReadonlyNotVariable
Errors\ErrorFacts.cs (2)
557
case ErrorCode.
WRN_RefReadonlyNotVariable
:
2411
or ErrorCode.
WRN_RefReadonlyNotVariable
Generated\ErrorFacts.Generated.cs (1)
330
case ErrorCode.
WRN_RefReadonlyNotVariable
:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (26)
RefReadonlyParameterTests.cs (13)
618
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "1").WithArguments("1").WithLocation(1, 4),
806
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "5").WithArguments("1").WithLocation(7, 20));
2450
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "5").WithArguments("1").WithLocation(6, 11));
3962
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "43").WithArguments("2").WithLocation(3, 11),
5388
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "5").WithArguments("0").WithLocation(6, 9));
5426
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "111").WithArguments("1").WithLocation(7, 14),
5429
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "111").WithArguments("2").WithLocation(8, 15),
5432
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "5").WithArguments("0").WithLocation(9, 9),
5435
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "111").WithArguments("1").WithLocation(9, 14),
5438
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "5").WithArguments("1").WithLocation(10, 12),
5441
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "111").WithArguments("2").WithLocation(10, 15),
5444
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "5").WithArguments("0").WithLocation(11, 9),
5453
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "111").WithArguments("2").WithLocation(12, 18),
Semantics\CollectionExpressionTests.cs (4)
7824
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "1").WithArguments("1").WithLocation(14, 42),
7827
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "..x").WithArguments("1").WithLocation(17, 35),
7830
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "..y").WithArguments("1").WithLocation(17, 40),
7833
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "3").WithArguments("1").WithLocation(17, 45));
Semantics\ExpressionOptionalAndNamedArgumentsTests.cs (3)
222
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "1").WithArguments("1").WithLocation(8, 44),
225
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "2").WithArguments("1").WithLocation(9, 44),
228
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "3").WithArguments("2").WithLocation(9, 47));
Semantics\ExtensionTests.cs (6)
4829
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "GetInt()").WithArguments("0").WithLocation(5, 9),
4832
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "GetInt()").WithArguments("0").WithLocation(6, 9),
4835
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "GetInt()").WithArguments("0").WithLocation(7, 13)
30514
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "42").WithArguments("1").WithLocation(1, 7));
30611
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "42").WithArguments("0").WithLocation(1, 1));
32320
Diagnostic(ErrorCode.
WRN_RefReadonlyNotVariable
, "42").WithArguments("0").WithLocation(1, 5));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
318
case ErrorCode.
WRN_RefReadonlyNotVariable
: