13 references to AddError
Microsoft.CodeAnalysis.CSharp (13)
Parser\Lexer.cs (3)
1945
this.
AddError
(start, atCount, ErrorCode.ERR_IllegalAtSequence);
2452
this.
AddError
(TextWindow.Position, s_conflictMarkerLength,
3159
this.
AddError
(TextWindow.LexemeStartPosition, TextWindow.Width, ErrorCode.ERR_OpenEndedComment);
Parser\Lexer_RawStringLiteral.cs (8)
137
this.
AddError
(TextWindow.Position, width: TextWindow.GetNewLineWidth(), ErrorCode.ERR_UnterminatedRawString);
142
this.
AddError
(TextWindow.Position, width: 0, ErrorCode.ERR_UnterminatedRawString);
165
this.
AddError
(
210
this.
AddError
(
268
this.
AddError
(
285
this.
AddError
(TextWindow.Position, width: 0, ErrorCode.ERR_UnterminatedRawString);
298
this.
AddError
(
358
this.
AddError
(
Parser\Lexer_StringLiteral.cs (2)
178
this.
AddError
(start, TextWindow.Position - start, ErrorCode.ERR_IllegalEscape);
198
this.
AddError
(start, width: TextWindow.Position - start, ErrorCode.ERR_IllegalAtSequence);