| // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| package com.google.dart.compiler.ast; |
| |
| /** |
| * An expression node representing an unparseable expression. |
| */ |
| public class DartSyntheticErrorExpression extends DartExpression { |
| |
| private final String tokenString; |
| |
| public DartSyntheticErrorExpression() { |
| this(null); |
| } |
| |
| public DartSyntheticErrorExpression(String tokenString) { |
| this.tokenString = tokenString; |
| } |
| |
| @Override |
| public <R> R accept(ASTVisitor<R> visitor) { |
| return visitor.visitSyntheticErrorExpression(this); |
| } |
| |
| public String getTokenString() { |
| return tokenString; |
| } |
| |
| @Override |
| public void visitChildren(ASTVisitor<?> visitor) { |
| } |
| } |