20 references to ERR_InterpolatedStringHandlerMethodReturnMalformed
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_InterpolatedString.cs (1)
989
diagnostics.Add(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, part.Syntax.Location, method);
Errors\ErrorFacts.cs (1)
2196
or ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Semantics\ExtensionTests.cs (6)
20304
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, " ").WithArguments("?.()").WithLocation(1, 20));
20340
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, " ").WithArguments("?.()").WithLocation(1, 20));
20375
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "{(object)1}").WithArguments("?.()").WithLocation(2, 9),
20381
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "{f2()}").WithArguments("?.()").WithLocation(2, 21)
20418
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "{(object)1}").WithArguments("?.()").WithLocation(1, 9),
20424
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "{f2()}").WithArguments("?.()").WithLocation(1, 21));
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)
4381
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)").WithLocation(4, 21),
4384
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)").WithLocation(4, 15 + expression.Length)
4410
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "Literal").WithArguments("?.()").WithLocation(4, 21),
4416
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "{1}").WithArguments("?.()").WithLocation(4, 28)
Semantics\RawInterpolationTests_Handler.cs (6)
2649
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)").WithLocation(4, 23),
2652
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)").WithLocation(4, 37));
2659
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)").WithLocation(4, 23),
2662
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)").WithLocation(4, 27));
2688
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "Literal").WithArguments("?.()").WithLocation(4, 23),
2694
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnMalformed
, "{1}").WithArguments("?.()").WithLocation(4, 30));