6 references to AddError
Microsoft.CodeAnalysis.CSharp (6)
Parser\Lexer.cs (4)
621
this.
AddError
(TextWindow.Position + 1, width: 1, ErrorCode.ERR_ExpectedVerbatimLiteral);
1613
this.
AddError
(start, atCount, ErrorCode.ERR_IllegalAtSequence);
2099
this.
AddError
(TextWindow.Position, s_conflictMarkerLength,
2816
this.
AddError
(this.LexemeStartPosition, this.CurrentLexemeWidth, ErrorCode.ERR_OpenEndedComment);
Parser\Lexer_StringLiteral.cs (2)
185
this.
AddError
(start, TextWindow.Position - start, ErrorCode.ERR_IllegalEscape);
205
this.
AddError
(start, width: TextWindow.Position - start, ErrorCode.ERR_IllegalAtSequence);