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)
717
AddError
(error);
935
this.
AddError
(MakeError(ErrorCode.ERR_LegacyObjectIdSyntax));
972
this.
AddError
(MakeError(ErrorCode.ERR_InvalidReal));
1044
this.
AddError
(MakeError(start, TextWindow.Position - start, ErrorCode.ERR_InvalidNumber));
1076
this.
AddError
(MakeError(ErrorCode.ERR_InvalidNumber));
1204
this.
AddError
(MakeError(ErrorCode.ERR_IntOverflow));
1218
this.
AddError
(MakeError(ErrorCode.ERR_IntOverflow));
1224
this.
AddError
(MakeError(ErrorCode.ERR_IntOverflow));
1236
this.
AddError
(MakeError(ErrorCode.ERR_FloatOverflow, "double"));
1248
this.
AddError
(MakeError(ErrorCode.ERR_FloatOverflow, "float"));
1283
this.
AddError
(this.MakeError(start, end - start, ErrorCode.ERR_FloatOverflow, "decimal"));
1566
AddError
(error);
1590
AddError
(error);
2703
AddError
(error);
Parser\Lexer_StringLiteral.cs (2)
182
AddError
(error);
278
this.
AddError
(error);