public void ReportUnexpectedEndOfStream(TextRange range, TokenKind expected)
 {
     this.builder.Add(new Diagnostic(DiagnosticCode.UnexpectedEndOfStream, range, expected.ToDisplayString()));
 }
 public void ReportUnexpectedTokenInsteadOfStatement(TextRange range, TokenKind found)
 {
     this.builder.Add(new Diagnostic(DiagnosticCode.UnexpectedTokenInsteadOfStatement, range, found.ToDisplayString()));
 }
 public void ReportUnexpectedTokenFound(TextRange range, TokenKind found, TokenKind expected)
 {
     this.builder.Add(new Diagnostic(DiagnosticCode.UnexpectedTokenFound, range, found.ToDisplayString(), expected.ToDisplayString()));
 }