23 references to WRN_RefReadonlyParameterDefaultValue
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (2)
562
case ErrorCode.
WRN_RefReadonlyParameterDefaultValue
:
2418
or ErrorCode.
WRN_RefReadonlyParameterDefaultValue
Generated\ErrorFacts.Generated.cs (1)
335
case ErrorCode.
WRN_RefReadonlyParameterDefaultValue
:
Symbols\Source\ParameterHelpers.cs (1)
1053
diagnostics.Add(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, parameterSyntax.Default.Value, parameterSyntax.Identifier.ValueText);
Symbols\Source\SourceComplexParameterSymbol.cs (1)
906
diagnostics.Add(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, syntax, this.Name);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenForEachTests.cs (2)
4361
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "9").WithArguments("x").WithLocation(20, 83));
4413
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)
624
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "2").WithArguments("x").WithLocation(10, 28));
4524
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "1").WithArguments("i").WithLocation(3, 47);
4575
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "DefaultParameterValue(1)").WithArguments("i").WithLocation(4, 37);
4629
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "1").WithArguments("i").WithLocation(4, 67),
4651
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "1").WithArguments("i").WithLocation(4, 51));
4673
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "1").WithArguments("i").WithLocation(4, 77),
4697
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "DecimalConstant(1, 0, 0u, 0u, 11u)").WithArguments("d").WithLocation(7, 38),
4700
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "1.1m").WithArguments("d").WithLocation(8, 52),
4805
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "1.1m").WithArguments("d").WithLocation(6, 92),
4826
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "DateTimeConstant(100L)").WithArguments("d").WithLocation(6, 37);
Semantics\CollectionExpressionTests.cs (2)
39766
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "2").WithArguments("y").WithLocation(7, 69),
40518
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "2").WithArguments("y").WithLocation(11, 110),
Semantics\ExtensionTests.cs (2)
3332
Diagnostic(ErrorCode.
WRN_RefReadonlyParameterDefaultValue
, "System.Runtime.InteropServices.DefaultParameterValue(1)").WithArguments("i").WithLocation(3, 57),
3335
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
: