9 references to AddError
Microsoft.CodeAnalysis.CSharp (9)
Parser\DirectiveParser.cs (3)
329
eod = this.
AddError
(eod, triviaOffset, triviaWidth, isError ? ErrorCode.ERR_ErrorDirective : ErrorCode.WRN_WarningDirective, errorText);
341
eod = this.
AddError
(eod, triviaOffset, triviaWidth, ErrorCode.ERR_CompilerAndLanguageVersion, version,
352
eod = this.
AddError
(eod, triviaOffset, triviaWidth, error, "version", new CSharpRequiredLanguageVersion(languageVersion));
Parser\LanguageParser.cs (6)
233
return
AddError
(node, position, 0, ErrorCode.ERR_InsufficientStack);
2964
type = this.
AddError
(
3005
result = this.
AddError
(
5381
missingIdentifier = this.
AddError
(missingIdentifier, offset, width, ErrorCode.ERR_IdentifierExpected);
7694
list[i] = this.
AddError
(this.CreateMissingIdentifierName(), offset, width, ErrorCode.ERR_ValueExpected);
11569
dotDotToken =
AddError
(