10 references to AddError
Microsoft.CodeAnalysis.CSharp (10)
Parser\Lexer.cs (6)
472
this.
AddError
(ErrorCode.ERR_TripleDotNotAllowed);
631
this.
AddError
(ErrorCode.ERR_ExpectedVerbatimLiteral);
678
this.
AddError
(ErrorCode.ERR_EndifDirectiveExpected);
683
this.
AddError
(ErrorCode.ERR_EndRegionDirectiveExpected);
2030
this.
AddError
(ErrorCode.ERR_OpenEndedComment);
3811
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);
233
this.
AddError
(ErrorCode.ERR_UnterminatedStringLit);