protected void diffErroneous(JCErroneous oldT, JCErroneous newT, int[] bounds) { JCTree oldTident = oldT.getErrorTrees().get(0); JCTree newTident = newT.getErrorTrees().get(0); if (oldTident.getKind() == Kind.IDENTIFIER && newTident.getKind() == Kind.IDENTIFIER) { diffIdent((JCIdent) oldTident, (JCIdent) newTident, bounds); } }
public void visitErroneous(JCErroneous that) { try { print("JCErroneous:"); } catch (Exception e) { } super.visitErroneous(that); }
public void visitErroneous(JCErroneous tree) { try { print("(ERROR)"); } catch (IOException e) { throw new UncheckedIOException(e); } }
private JCErroneous syntaxError(int pos, List<JCTree> errs, String key, Token... args) { setErrorEndPos(pos); JCErroneous err = F.at(pos).Erroneous(errs); reportSyntaxError(err, key, (Object[])args); if (errs != null) { JCTree last = errs.last(); if (last != null) storeEnd(last, pos); } return toP(err); }
public JCErroneous Erroneous() { return invoke(Erroneous); }
public JCErroneous Erroneous(List<? extends JCTree> errs) { return invoke(ErroneousWithErrs, errs); }
public void visitErroneous(JCErroneous tree) { print("(ERROR)"); }
public AJCErroneous(JCErroneous ltree) { super(ltree.errs); }
public AJCErroneous(JCErroneous ltree, String lcomment) { this(ltree); setComment(lcomment); }
@Override public void visitErroneous(JCErroneous tree) { printNode(tree); children("errs", tree.errs); indent--; }
private JCErroneous syntaxError(int pos, String key, Token... args) { return syntaxError(pos, List.<JCTree>nil(), key, args); }
/** Generate a syntax error at current position unless one was already * reported at the same position. */ private JCErroneous syntaxError(String key) { return syntaxError(S.pos(), key); }
/** Generate a syntax error at current position unless one was * already reported at the same position. */ private JCErroneous syntaxError(String key, Token arg) { return syntaxError(S.pos(), key, arg); }
public void visitErroneous(JCErroneous tree) { if (tree.errs != null) for (JCTree err : tree.errs) attribTree(err, env, ERR, pt); result = tree.type = syms.errType; }
public void visitErroneous(JCErroneous tree) { if (tree.errs != null) memberEnter(tree.errs, env); }
private static JCErroneous createType(Context ctx) { JCErroneous err = new JCErroneous(List.<JCTree>nil()) {}; err.type = Symtab.instance(ctx).errType; return err; }