23 references to WRN_RefReadonlyParameterDefaultValue
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (2)
561
case ErrorCode.
WRN_RefReadonlyParameterDefaultValue
:
2417
or ErrorCode.
WRN_RefReadonlyParameterDefaultValue
Generated\ErrorFacts.Generated.cs (1)
334
case ErrorCode.
WRN_RefReadonlyParameterDefaultValue
:
Symbols\Source\ParameterHelpers.cs (1)
1061
diagnostics.Add(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, parameterSyntax.Default.Value, parameterSyntax.Identifier.ValueText);
Symbols\Source\SourceComplexParameterSymbol.cs (1)
938
diagnostics.Add(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, syntax, this.Name);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenForEachTests.cs (2)
4349
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "9").WithArguments("x").WithLocation(20, 83));
4401
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "5").WithArguments("x").WithLocation(20, 50));
CodeGen\CodeGenUsingStatementTests.cs (1)
3132
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "2").WithArguments("x").WithLocation(8, 46));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (14)
RefReadonlyParameterTests.cs (10)
648
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "2").WithArguments("x").WithLocation(10, 28));
4551
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "1").WithArguments("i").WithLocation(3, 47);
4602
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "DefaultParameterValue(1)").WithArguments("i").WithLocation(4, 37);
4656
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "1").WithArguments("i").WithLocation(4, 67),
4678
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "1").WithArguments("i").WithLocation(4, 51));
4700
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "1").WithArguments("i").WithLocation(4, 77),
4724
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "DecimalConstant(1, 0, 0u, 0u, 11u)").WithArguments("d").WithLocation(7, 38),
4727
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "1.1m").WithArguments("d").WithLocation(8, 52),
4832
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "1.1m").WithArguments("d").WithLocation(6, 92),
4853
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "DateTimeConstant(100L)").WithArguments("d").WithLocation(6, 37);
Semantics\CollectionExpressionTests.cs (2)
42545
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "2").WithArguments("y").WithLocation(7, 69),
43297
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "2").WithArguments("y").WithLocation(11, 110),
Semantics\ExtensionTests.cs (2)
3493
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "System.Runtime.InteropServices.DefaultParameterValue(1)").WithArguments("i").WithLocation(3, 57),
3496
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "System.Runtime.InteropServices.DefaultParameterValue(2)").WithArguments("").WithLocation(4, 57),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
323
case ErrorCode.
WRN_RefReadonlyParameterDefaultValue
: