14 references to ERR_InterpolatedStringHandlerMethodReturnMalformed
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_InterpolatedString.cs (1)
821
diagnostics.Add(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, part.Syntax.Location, method);
Errors\ErrorFacts.cs (1)
2139
case ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
:
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_IInterpolatedStringOperation.cs (2)
1750
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "literal").WithArguments("?.()").WithLocation(4, 31),
1756
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "{i}").WithArguments("?.()").WithLocation(4, 38)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Semantics\InterpolationTests.cs (4)
4354
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)").WithLocation(4, 21),
4357
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)").WithLocation(4, 15 + expression.Length)
4383
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "Literal").WithArguments("?.()").WithLocation(4, 21),
4389
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "{1}").WithArguments("?.()").WithLocation(4, 28)
Semantics\RawInterpolationTests_Handler.cs (6)
2648
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)").WithLocation(4, 23),
2651
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)").WithLocation(4, 37));
2658
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)").WithLocation(4, 23),
2661
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)").WithLocation(4, 27));
2687
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "Literal").WithArguments("?.()").WithLocation(4, 23),
2693
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "{1}").WithArguments("?.()").WithLocation(4, 30));