23 references to AddError
Microsoft.CodeAnalysis.CSharp (23)
Parser\AbstractLexer.cs (7)
68
this.
AddError
(this.MakeError(position, width, code));
73
this.
AddError
(this.MakeError(position, width, code, args));
78
this.
AddError
(this.MakeError(position, width, code, args));
83
this.
AddError
(MakeError(code));
88
this.
AddError
(MakeError(code, args));
93
this.
AddError
(MakeError(code));
98
this.
AddError
(MakeError(code, args));
Parser\Lexer.cs (14)
712
AddError
(error);
930
this.
AddError
(MakeError(ErrorCode.ERR_LegacyObjectIdSyntax));
967
this.
AddError
(MakeError(ErrorCode.ERR_InvalidReal));
1039
this.
AddError
(MakeError(start, TextWindow.Position - start, ErrorCode.ERR_InvalidNumber));
1071
this.
AddError
(MakeError(ErrorCode.ERR_InvalidNumber));
1199
this.
AddError
(MakeError(ErrorCode.ERR_IntOverflow));
1213
this.
AddError
(MakeError(ErrorCode.ERR_IntOverflow));
1219
this.
AddError
(MakeError(ErrorCode.ERR_IntOverflow));
1231
this.
AddError
(MakeError(ErrorCode.ERR_FloatOverflow, "double"));
1243
this.
AddError
(MakeError(ErrorCode.ERR_FloatOverflow, "float"));
1278
this.
AddError
(this.MakeError(start, end - start, ErrorCode.ERR_FloatOverflow, "decimal"));
1561
AddError
(error);
1585
AddError
(error);
2719
AddError
(error);
Parser\Lexer_StringLiteral.cs (2)
182
AddError
(error);
278
this.
AddError
(error);