21 references to TrySetError
Microsoft.CodeAnalysis.CSharp (21)
Parser\Lexer_StringLiteral.cs (21)
457TrySetError(_lexer.MakeError(start, window.Position - start, ErrorCode.ERR_StringMustStartWithQuoteCharacter)); 468TrySetError(_lexer.MakeError(start, window.Position - start, ErrorCode.ERR_IllegalAtSequence)); 474TrySetError(_lexer.MakeError(window.Position - startingQuoteCount, startingQuoteCount, ErrorCode.ERR_NotEnoughQuotesForRawString)); 530TrySetError(_lexer.MakeError( 553TrySetError(_lexer.MakeError( 571TrySetError(_lexer.MakeError( 588TrySetError(_lexer.MakeError( 599TrySetError(_lexer.MakeError( 618TrySetError(_lexer.MakeError( 675TrySetError(_lexer.MakeError(escapeStart, _lexer.TextWindow.Position - escapeStart, ErrorCode.ERR_EscapedCurly, ch)); 705this.TrySetError(_lexer.MakeError( 806TrySetError(_lexer.MakeError(pos, 1, ErrorCode.ERR_UnescapedCurly, "}")); 821TrySetError(_lexer.MakeError( 860TrySetError(_lexer.MakeError(openBracePosition - 1, 2, ErrorCode.ERR_UnclosedExpressionHole)); 892TrySetError(_lexer.MakeError( 907TrySetError(_lexer.MakeError( 915TrySetError(_lexer.MakeError( 958TrySetError(_lexer.MakeError(pos, 1, ErrorCode.ERR_EscapedCurly, ch)); 974TrySetError(_lexer.MakeError( 1015TrySetError(_lexer.MakeError(_lexer.TextWindow.Position, 1, ErrorCode.ERR_SyntaxError, endingChar.ToString())); 1047TrySetError(_lexer.MakeError(_lexer.TextWindow.Position, 1, ErrorCode.ERR_SyntaxError, endingChar.ToString()));