15 references to ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2142
case ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
:
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1339
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)
7415
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgumentAttribute("""")").WithArguments("C.M(CustomHandler)").WithLocation(8, 27)
7492
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgumentAttribute("""")").WithArguments("C.C(CustomHandler)").WithLocation(8, 15)
16355
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgument("""")").WithArguments("M(CustomHandler)").WithLocation(6, 10 + mod.Length)
16419
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgument("""")").WithArguments("lambda expression").WithLocation(4, 12 + mod.Length)
16492
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgument("""")").WithArguments("M.Invoke(CustomHandler)").WithLocation(8, 18)
16826
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgument("""")").WithArguments("S1Ext.M(S1, CustomHandler)").WithLocation(15, 38)
Semantics\RawInterpolationTests_Handler.cs (6)
5711
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgumentAttribute("""")").WithArguments("C.M(CustomHandler)").WithLocation(expression.Contains('+') ? 12 : 10, 27));
5800
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgumentAttribute("""")").WithArguments("C.C(CustomHandler)").WithLocation(expression.Contains('+') ? 12 : 10, 15));
12727
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgument("""")").WithArguments("M(CustomHandler)").WithLocation(8, 10 + mod.Length));
12794
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgument("""")").WithArguments("lambda expression").WithLocation(4, 12 + mod.Length));
12871
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgument("""")").WithArguments("M.Invoke(CustomHandler)").WithLocation(10, 18));
13220
Diagnostic(ErrorCode.
ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName
, @"InterpolatedStringHandlerArgument("""")").WithArguments("S1Ext.M(S1, CustomHandler)").WithLocation(17, 38));