14 references to AddError
Microsoft.CodeAnalysis.CSharp (14)
Parser\Lexer.cs (4)
637
this.
AddError
(TextWindow.Position + 1, width: 1, ErrorCode.ERR_ExpectedVerbatimLiteral);
1633
this.
AddError
(start, atCount, ErrorCode.ERR_IllegalAtSequence);
2119
this.
AddError
(TextWindow.Position, s_conflictMarkerLength,
2817
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)
185
this.
AddError
(start, TextWindow.Position - start, ErrorCode.ERR_IllegalEscape);
205
this.
AddError
(start, width: TextWindow.Position - start, ErrorCode.ERR_IllegalAtSequence);