7 references to MakeError
Microsoft.CodeAnalysis.CSharp (7)
Parser\LanguageParser.cs (1)
3851SyntaxDiagnosticInfo diagInfo = MakeError(opTokenErrorOffset, opTokenErrorWidth, ErrorCode.ERR_BadOperatorSyntax, SyntaxFacts.GetText(SyntaxKind.PlusToken));
Parser\LanguageParser_InterpolatedString.cs (1)
204indentationError ??= MakeError(
Parser\SyntaxParser.cs (5)
624token = WithAdditionalDiagnostics(token, MakeError(token.GetLeadingTriviaWidth(), token.Width, errorCode, args)); 816return WithAdditionalDiagnostics(node, MakeError(offset, width, code, args)); 821return WithAdditionalDiagnostics(node, MakeError(offset, length, code, args)); 841return WithAdditionalDiagnostics(node, MakeError(firstToken.GetLeadingTriviaWidth(), firstToken.Width, code, args)); 857return WithAdditionalDiagnostics(node, MakeError(offset, width, code, args));