14 references to ERR_ExtensionParameterDisallowsDefaultValue
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2495
or ErrorCode.
ERR_ExtensionParameterDisallowsDefaultValue
Symbols\Source\ParameterHelpers.cs (1)
926
diagnostics.Add(ErrorCode.
ERR_ExtensionParameterDisallowsDefaultValue
, parameterSyntax.GetLocation());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (10)
Semantics\ExtensionTests.cs (10)
3237
Diagnostic(ErrorCode.
ERR_ExtensionParameterDisallowsDefaultValue
, "int i = 0").WithLocation(3, 15));
3259
Diagnostic(ErrorCode.
ERR_ExtensionParameterDisallowsDefaultValue
, "int i = 0").WithLocation(3, 15),
3278
Diagnostic(ErrorCode.
ERR_ExtensionParameterDisallowsDefaultValue
, "int i = null").WithLocation(3, 15));
3294
Diagnostic(ErrorCode.
ERR_ExtensionParameterDisallowsDefaultValue
, "ref readonly int x = 2").WithLocation(3, 15));
3310
Diagnostic(ErrorCode.
ERR_ExtensionParameterDisallowsDefaultValue
, "[System.Runtime.InteropServices.DefaultParameterValue(1)] int o = 2").WithLocation(3, 15),
3370
Diagnostic(ErrorCode.
ERR_ExtensionParameterDisallowsDefaultValue
, "[System.Runtime.CompilerServices.CallerLineNumber] int x = 2").WithLocation(3, 15));
4697
Diagnostic(ErrorCode.
ERR_ExtensionParameterDisallowsDefaultValue
, "object o = null").WithLocation(3, 15)
4709
Diagnostic(ErrorCode.
ERR_ExtensionParameterDisallowsDefaultValue
, "object o = null").WithLocation(3, 15),
30745
Diagnostic(ErrorCode.
ERR_ExtensionParameterDisallowsDefaultValue
, "int i = 0").WithLocation(5, 15));
38914
Diagnostic(ErrorCode.
ERR_ExtensionParameterDisallowsDefaultValue
, @"[System.Runtime.CompilerServices.CallerMemberName] string name = """"").WithLocation(5, 15));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Parsing\ExtensionsParsingTests.cs (2)
482
Diagnostic(ErrorCode.
ERR_ExtensionParameterDisallowsDefaultValue
, "object x = null").WithLocation(3, 15));
541
Diagnostic(ErrorCode.
ERR_ExtensionParameterDisallowsDefaultValue
, "object = null").WithLocation(3, 15));