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)
908
AddError
(error);
1125
this.
AddError
(MakeError(ErrorCode.ERR_LegacyObjectIdSyntax));
1162
this.
AddError
(MakeError(ErrorCode.ERR_InvalidReal));
1233
this.
AddError
(MakeError(start, TextWindow.Position - start, ErrorCode.ERR_InvalidNumber));
1265
this.
AddError
(MakeError(ErrorCode.ERR_InvalidNumber));
1393
this.
AddError
(MakeError(ErrorCode.ERR_IntOverflow));
1407
this.
AddError
(MakeError(ErrorCode.ERR_IntOverflow));
1413
this.
AddError
(MakeError(ErrorCode.ERR_IntOverflow));
1425
this.
AddError
(MakeError(ErrorCode.ERR_FloatOverflow, "double"));
1437
this.
AddError
(MakeError(ErrorCode.ERR_FloatOverflow, "float"));
1472
this.
AddError
(this.MakeError(start, end - start, ErrorCode.ERR_FloatOverflow, "decimal"));
1874
AddError
(error);
1898
AddError
(error);
3029
AddError
(error);
Parser\Lexer_StringLiteral.cs (2)
175
AddError
(error);
271
this.
AddError
(error);