Java 类com.sun.tools.javac.tree.JCTree.JCErroneous 实例源码

项目:incubator-netbeans    文件:CasualDiff.java   
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);
    }
}
项目:javaparser2jctree    文件:PrintAstVisitor.java   
public void visitErroneous(JCErroneous that) {
    try {
        print("JCErroneous:");
    } catch (Exception e) {
    }
    super.visitErroneous(that);
}
项目:EasyMPermission    文件:PrettyCommentsPrinter.java   
public void visitErroneous(JCErroneous tree) {
    try {
        print("(ERROR)");
    } catch (IOException e) {
        throw new UncheckedIOException(e);
    }
}
项目:s4j    文件:JavacParser.java   
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);
}
项目:s4j    文件:Pretty.java   
public void visitErroneous(JCErroneous tree) {
    try {
        print("(ERROR)");
    } catch (IOException e) {
        throw new UncheckedIOException(e);
    }
}
项目:lombok    文件:PrettyCommentsPrinter.java   
public void visitErroneous(JCErroneous tree) {
    try {
        print("(ERROR)");
    } catch (IOException e) {
        throw new UncheckedIOException(e);
    }
}
项目:lombok-ianchiu    文件:JavacTreeMaker.java   
public JCErroneous Erroneous() {
    return invoke(Erroneous);
}
项目:lombok-ianchiu    文件:JavacTreeMaker.java   
public JCErroneous Erroneous(List<? extends JCTree> errs) {
    return invoke(ErroneousWithErrs, errs);
}
项目:lombok-ianchiu    文件:PrettyPrinter.java   
public void visitErroneous(JCErroneous tree) {
    print("(ERROR)");
}
项目:javaparser2jctree    文件:AJCErroneous.java   
public AJCErroneous(JCErroneous ltree) {
    super(ltree.errs);
}
项目:javaparser2jctree    文件:AJCErroneous.java   
public AJCErroneous(JCErroneous ltree, String lcomment) {
    this(ltree);
    setComment(lcomment);
}
项目:EasyMPermission    文件:JavacTreeMaker.java   
public JCErroneous Erroneous() {
    return invoke(Erroneous);
}
项目:EasyMPermission    文件:JavacTreeMaker.java   
public JCErroneous Erroneous(List<? extends JCTree> errs) {
    return invoke(ErroneousWithErrs, errs);
}
项目:android-retrolambda-lombok    文件:JcTreePrinter.java   
@Override public void visitErroneous(JCErroneous tree) {
    printNode(tree);
    children("errs", tree.errs);
    indent--;
}
项目:s4j    文件:JavacParser.java   
private JCErroneous syntaxError(int pos, String key, Token... args) {
    return syntaxError(pos, List.<JCTree>nil(), key, args);
}
项目:s4j    文件:JavacParser.java   
/** 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);
}
项目:s4j    文件:JavacParser.java   
/** 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);
}
项目:s4j    文件:Attr.java   
public void visitErroneous(JCErroneous tree) {
    if (tree.errs != null)
        for (JCTree err : tree.errs)
            attribTree(err, env, ERR, pt);
    result = tree.type = syms.errType;
}
项目:s4j    文件:MemberEnter.java   
public void visitErroneous(JCErroneous tree) {
    if (tree.errs != null)
        memberEnter(tree.errs, env);
}
项目:incubator-netbeans    文件:JackpotTrees.java   
private static JCErroneous createType(Context ctx) {
    JCErroneous err = new JCErroneous(List.<JCTree>nil()) {};

    err.type = Symtab.instance(ctx).errType;

    return err;
}