Exemple #1
0
 /// <inheritdoc />
 public void SyntaxError(
     TextWriter output,
     IRecognizer recognizer,
     IToken offendingSymbol,
     int line,
     int charPositionInLine,
     string message,
     RecognitionException exception)
 {
     this.messages.Add(
         CompilationMessage.CreateError(
             CompilerMessageId.GenericParseError,
             offendingSymbol,
             offendingSymbol,
             new[] { message }));
 }
 private void AddWarning(CompilerMessageId messageId, IToken token, params string[] messageParameters)
 {
     this.messages.Add(CompilationMessage.CreateWarning(
                           messageId, token, token, messageParameters));
 }
 private void AddError(CompilerMessageId messageId, IToken startToken, IToken endToken, params string[] messageParameters)
 {
     this.messages.Add(CompilationMessage.CreateError(
                           messageId, startToken, endToken, messageParameters));
 }