10 references to AddError
Microsoft.CodeAnalysis.CSharp (10)
Parser\Lexer.cs (6)
477
this.
AddError
(ErrorCode.ERR_TripleDotNotAllowed);
776
this.
AddError
(ErrorCode.ERR_ExpectedVerbatimLiteral);
887
this.
AddError
(ErrorCode.ERR_EndifDirectiveExpected);
892
this.
AddError
(ErrorCode.ERR_EndRegionDirectiveExpected);
2352
this.
AddError
(ErrorCode.ERR_OpenEndedComment);
4201
this.
AddError
(ErrorCode.ERR_ExpectedVerbatimLiteral);
Parser\Lexer_StringLiteral.cs (4)
30
this.
AddError
(ErrorCode.ERR_RawStringNotInDirectives);
64
this.
AddError
(ErrorCode.ERR_NewlineInConst);
80
this.
AddError
((_builder.Length != 0) ? ErrorCode.ERR_TooManyCharsInConst : ErrorCode.ERR_EmptyCharConst);
226
this.
AddError
(ErrorCode.ERR_UnterminatedStringLit);