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

项目:javaparser2jctree    文件:PrintAstVisitor.java   
public void visitLetExpr(LetExpr that) {
    try {
        print("LetExpr:");
    } catch (Exception e) {
    }
    super.visitLetExpr(that);
}
项目:EasyMPermission    文件:PrettyCommentsPrinter.java   
public void visitLetExpr(LetExpr tree) {
    try {
        print("(let " + tree.defs + " in " + tree.expr + ")");
    } catch (IOException e) {
        throw new UncheckedIOException(e);
    }
}
项目:s4j    文件:Pretty.java   
public void visitLetExpr(LetExpr tree) {
    try {
        print("(let " + tree.defs + " in " + tree.expr + ")");
    } catch (IOException e) {
        throw new UncheckedIOException(e);
    }
}
项目:WiggleIndexer    文件:WiggleVisitor.java   
@Override
public Void visitExpressionStatement(ExpressionStatementTree expressionStatementTree, Pair<Tree, RelationTypes> t) {

    Node expressionStatementNode = createSkeletonNode(expressionStatementTree);
    attachType(expressionStatementTree, expressionStatementNode);
    connectWithParent(expressionStatementNode, t.getFirst(), t.getSecond());

    if (!(expressionStatementTree.getExpression() instanceof LetExpr))
        scan(expressionStatementTree.getExpression(), Pair.create((Tree) expressionStatementTree, RelationTypes.EXPR_ENCLOSES));

    return null;
}
项目:WiggleIndexer    文件:WiggleVisitor.java   
public Void visitParenthesized(ParenthesizedTree parenthesizedTree, Pair<Tree, RelationTypes> t) {


        if (parenthesizedTree instanceof LetExpr)
            return null;
        Pair<Tree, RelationTypes> n = Pair.create((Tree) parenthesizedTree, RelationTypes.PARENTHESIZED_ENCLOSES);

        Node parenthesizedNode = createSkeletonNode(parenthesizedTree);
        attachType(parenthesizedTree, parenthesizedNode);
        connectWithParent(parenthesizedNode, t.getFirst(), t.getSecond());

        scan(parenthesizedTree.getExpression(), n);
        return null;
    }
项目:lombok    文件:PrettyCommentsPrinter.java   
public void visitLetExpr(LetExpr tree) {
    try {
        print("(let " + tree.defs + " in " + tree.expr + ")");
    } catch (IOException e) {
        throw new UncheckedIOException(e);
    }
}
项目:incubator-netbeans    文件:CasualDiff.java   
protected void diffLetExpr(LetExpr oldT, LetExpr newT) {
    // TODO: perhaps better to throw exception here. Should be never
    // called.
}
项目:incubator-netbeans    文件:CasualDiff.java   
private boolean matchLetExpr(LetExpr t1, LetExpr t2) {
    return listsMatch(t1.defs, t2.defs) && treesMatch(t1.expr, t2.expr);
}
项目:lombok-ianchiu    文件:JavacTreeMaker.java   
public LetExpr LetExpr(List<JCVariableDecl> defs, JCTree expr) {
    return invoke(LetExpr, defs, expr);
}
项目:lombok-ianchiu    文件:JavacTreeMaker.java   
public LetExpr LetExpr(JCVariableDecl def, JCTree expr) {
    return invoke(LetExprSingle, def, expr);
}
项目:javaparser2jctree    文件:ALetExpr.java   
public ALetExpr(LetExpr ltree) {
    super(ltree.defs, ltree.expr);
}
项目:javaparser2jctree    文件:ALetExpr.java   
public ALetExpr(LetExpr ltree, String lcomment) {
    this(ltree);
    setComment(lcomment);
}
项目:EasyMPermission    文件:JavacTreeMaker.java   
public LetExpr LetExpr(List<JCVariableDecl> defs, JCTree expr) {
    return invoke(LetExpr, defs, expr);
}
项目:EasyMPermission    文件:JavacTreeMaker.java   
public LetExpr LetExpr(JCVariableDecl def, JCTree expr) {
    return invoke(LetExprSingle, def, expr);
}
项目:android-retrolambda-lombok    文件:JcTreePrinter.java   
@Override public void visitLetExpr(LetExpr tree) {
    printNode(tree);
    children("defs", tree.defs);
    child("expr", tree.expr);
    indent--;
}