Пример #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 }));
 }
Пример #2
0
 private void AddWarning(CompilerMessageId messageId, IToken token, params string[] messageParameters)
 {
     this.messages.Add(CompilationMessage.CreateWarning(
                           messageId, token, token, messageParameters));
 }
Пример #3
0
 private void AddError(CompilerMessageId messageId, IToken startToken, IToken endToken, params string[] messageParameters)
 {
     this.messages.Add(CompilationMessage.CreateError(
                           messageId, startToken, endToken, messageParameters));
 }