281282283284285286287
// an already bound and validated call alone. return call.transformParams(this); } public Call visitUnboundCall(UnboundCall call) { throw new UnexpectedNodeException(call); }
345346347348349350351352353
@Override public Expression visitObjectConstant(ObjectConstant value) { if (value.getType() == null) { // TODO(harryh): make this a better error throw new UnexpectedNodeException(value); } return value; }
351352353354355356357
} return value; } public Void visitUnboundImplementsDeclaration(UnboundImplementsDeclaration uid) { throw new UnexpectedNodeException(uid); }
177178179180181182183
protected class StatementVisitor extends DefaultingExpressionVisitor<Void> implements CallVisitor<Void> { @Override public Void defaultVisitExpression(Expression node) { throw new UnexpectedNodeException(node); }
272273274275276277278
return null; } @Override public Void visitBoundCall(BoundCall call) { throw new UnexpectedNodeException(call); }
277278279280281282283
throw new UnexpectedNodeException(call); } @Override public Void visitUnboundCall(UnboundCall call) { throw new UnexpectedNodeException(call); }
300301302303304305306
* EscapeExpression need to be handled. */ protected class ToEscapableExpressionVisitor extends DefaultingExpressionVisitor<String> { @Override public String defaultVisitExpression(Expression value) { throw new UnexpectedNodeException(value); }
327328329330331332333
* Converts an Expression into a C++ expression */ protected class ToExpressionVisitor extends DefaultingExpressionVisitor<String> { @Override public String defaultVisitExpression(Expression value) { throw new UnexpectedNodeException(value); }
104105106107108109110
return ph.getContent().acceptVisitor(this); } @Override public Expression visitPlaceholderStart(PlaceholderStart value) { throw new UnexpectedNodeException(value); }
109110111112113114115
throw new UnexpectedNodeException(value); } @Override public Expression visitPlaceholderEnd(PlaceholderEnd value) { throw new UnexpectedNodeException(value); }