22 references to AddError
Microsoft.CodeAnalysis.CSharp (22)
Parser\AbstractLexer.cs (6)
50
this.
AddError
(this.MakeError(position, width, code));
55
this.
AddError
(this.MakeError(position, width, code, args));
60
this.
AddError
(MakeError(code));
65
this.
AddError
(MakeError(code, args));
70
this.
AddError
(MakeError(code));
75
this.
AddError
(MakeError(code, args));
Parser\Lexer.cs (14)
697
AddError
(error);
915
this.
AddError
(MakeError(ErrorCode.ERR_LegacyObjectIdSyntax));
952
this.
AddError
(MakeError(ErrorCode.ERR_InvalidReal));
1024
this.
AddError
(MakeError(start, TextWindow.Position - start, ErrorCode.ERR_InvalidNumber));
1056
this.
AddError
(MakeError(ErrorCode.ERR_InvalidNumber));
1184
this.
AddError
(MakeError(ErrorCode.ERR_IntOverflow));
1198
this.
AddError
(MakeError(ErrorCode.ERR_IntOverflow));
1204
this.
AddError
(MakeError(ErrorCode.ERR_IntOverflow));
1216
this.
AddError
(MakeError(ErrorCode.ERR_FloatOverflow, "double"));
1228
this.
AddError
(MakeError(ErrorCode.ERR_FloatOverflow, "float"));
1263
this.
AddError
(this.MakeError(start, end - start, ErrorCode.ERR_FloatOverflow, "decimal"));
1542
AddError
(error);
1566
AddError
(error);
2698
AddError
(error);
Parser\Lexer_StringLiteral.cs (2)
182
AddError
(error);
278
this.
AddError
(error);