15 references to ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2199
or ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1345
diagnostics.Add(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, arguments.AttributeSyntaxOpt.Location, ContainingSymbol);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IInterpolatedStringOperation.cs (1)
4193
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgument("""", ""b"")").WithArguments("C.C(bool, CustomHandler)").WithLocation(7, 23),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\InterpolationTests.cs (6)
7456
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgumentAttribute("""")").WithArguments("C.M(CustomHandler)").WithLocation(8, 27)
7533
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgumentAttribute("""")").WithArguments("C.C(CustomHandler)").WithLocation(8, 15)
17364
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgument("""")").WithArguments("M(CustomHandler)").WithLocation(6, 10 + mod.Length)
17428
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgument("""")").WithArguments("lambda expression").WithLocation(4, 12 + mod.Length)
17501
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgument("""")").WithArguments("M.Invoke(CustomHandler)").WithLocation(8, 18)
17835
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgument("""")").WithArguments("S1Ext.M(S1, CustomHandler)").WithLocation(15, 38)
Semantics\RawInterpolationTests_Handler.cs (6)
5722
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgumentAttribute("""")").WithArguments("C.M(CustomHandler)").WithLocation(expression.Contains('+') ? 12 : 10, 27));
5811
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgumentAttribute("""")").WithArguments("C.C(CustomHandler)").WithLocation(expression.Contains('+') ? 12 : 10, 15));
12759
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgument("""")").WithArguments("M(CustomHandler)").WithLocation(8, 10 + mod.Length));
12826
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgument("""")").WithArguments("lambda expression").WithLocation(4, 12 + mod.Length));
12903
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgument("""")").WithArguments("M.Invoke(CustomHandler)").WithLocation(10, 18));
13252
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgument("""")").WithArguments("S1Ext.M(S1, CustomHandler)").WithLocation(17, 38));