21 references to TrySetError
Microsoft.CodeAnalysis.CSharp (21)
Parser\Lexer_StringLiteral.cs (21)
464TrySetError(_lexer.MakeError(start, window.Position - start, ErrorCode.ERR_StringMustStartWithQuoteCharacter));
475TrySetError(_lexer.MakeError(start, window.Position - start, ErrorCode.ERR_IllegalAtSequence));
481TrySetError(_lexer.MakeError(window.Position - startingQuoteCount, startingQuoteCount, ErrorCode.ERR_NotEnoughQuotesForRawString));
537TrySetError(_lexer.MakeError(
560TrySetError(_lexer.MakeError(
578TrySetError(_lexer.MakeError(
595TrySetError(_lexer.MakeError(
606TrySetError(_lexer.MakeError(
625TrySetError(_lexer.MakeError(
682TrySetError(_lexer.MakeError(escapeStart, _lexer.TextWindow.Position - escapeStart, ErrorCode.ERR_EscapedCurly, ch));
712this.TrySetError(_lexer.MakeError(
813TrySetError(_lexer.MakeError(pos, 1, ErrorCode.ERR_UnescapedCurly, "}"));
828TrySetError(_lexer.MakeError(
867TrySetError(_lexer.MakeError(openBracePosition - 1, 2, ErrorCode.ERR_UnclosedExpressionHole));
899TrySetError(_lexer.MakeError(
914TrySetError(_lexer.MakeError(
922TrySetError(_lexer.MakeError(
965TrySetError(_lexer.MakeError(pos, 1, ErrorCode.ERR_EscapedCurly, ch));
981TrySetError(_lexer.MakeError(
1022TrySetError(_lexer.MakeError(_lexer.TextWindow.Position, 1, ErrorCode.ERR_SyntaxError, endingChar.ToString()));
1054TrySetError(_lexer.MakeError(_lexer.TextWindow.Position, 1, ErrorCode.ERR_SyntaxError, endingChar.ToString()));