8 references to UseDefaultArgumentDescriptor
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Diagnostics\OperationAnalyzerTests.cs (6)
351
Diagnostic(InvocationTestAnalyzer.
UseDefaultArgumentDescriptor
.Id, "M3(0)").WithArguments("y").WithLocation(33, 9),
352
Diagnostic(InvocationTestAnalyzer.
UseDefaultArgumentDescriptor
.Id, "M3(y: null)").WithArguments("x").WithLocation(34, 9),
353
Diagnostic(InvocationTestAnalyzer.
UseDefaultArgumentDescriptor
.Id, "M3(x: 0)").WithArguments("y").WithLocation(35, 9),
354
Diagnostic(InvocationTestAnalyzer.
UseDefaultArgumentDescriptor
.Id, "M3()").WithArguments("x").WithLocation(36, 9),
355
Diagnostic(InvocationTestAnalyzer.
UseDefaultArgumentDescriptor
.Id, "M3()").WithArguments("y").WithLocation(36, 9),
356
Diagnostic(InvocationTestAnalyzer.
UseDefaultArgumentDescriptor
.Id, "M5(b: new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11})").WithArguments("x").WithLocation(47, 9));
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\OperationTestAnalyzer.cs (2)
533
UseDefaultArgumentDescriptor
,
555
operationContext.ReportDiagnostic(Diagnostic.Create(
UseDefaultArgumentDescriptor
, invocation.Syntax.GetLocation(), argument.Parameter.Name));