23 references to AddError
Microsoft.CodeAnalysis.CSharp (23)
Parser\AbstractLexer.cs (7)
68this.AddError(this.MakeError(position, width, code)); 73this.AddError(this.MakeError(position, width, code, args)); 78this.AddError(this.MakeError(position, width, code, args)); 83this.AddError(MakeError(code)); 88this.AddError(MakeError(code, args)); 93this.AddError(MakeError(code)); 98this.AddError(MakeError(code, args));
Parser\Lexer.cs (14)
713AddError(error); 931this.AddError(MakeError(ErrorCode.ERR_LegacyObjectIdSyntax)); 968this.AddError(MakeError(ErrorCode.ERR_InvalidReal)); 1040this.AddError(MakeError(start, TextWindow.Position - start, ErrorCode.ERR_InvalidNumber)); 1072this.AddError(MakeError(ErrorCode.ERR_InvalidNumber)); 1200this.AddError(MakeError(ErrorCode.ERR_IntOverflow)); 1214this.AddError(MakeError(ErrorCode.ERR_IntOverflow)); 1220this.AddError(MakeError(ErrorCode.ERR_IntOverflow)); 1232this.AddError(MakeError(ErrorCode.ERR_FloatOverflow, "double")); 1244this.AddError(MakeError(ErrorCode.ERR_FloatOverflow, "float")); 1279this.AddError(this.MakeError(start, end - start, ErrorCode.ERR_FloatOverflow, "decimal")); 1562AddError(error); 1586AddError(error); 2666AddError(error);
Parser\Lexer_StringLiteral.cs (2)
182AddError(error); 278this.AddError(error);