langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/JCTree.java
changeset 33707 d74fef6b01e0
parent 31751 ec251536a004
child 36526 3b41f1c69604
equal deleted inserted replaced
33706:0d21ecb55e6a 33707:d74fef6b01e0
  2621     }
  2621     }
  2622 
  2622 
  2623     /** (let int x = 3; in x+2) */
  2623     /** (let int x = 3; in x+2) */
  2624     public static class LetExpr extends JCExpression {
  2624     public static class LetExpr extends JCExpression {
  2625         public List<JCVariableDecl> defs;
  2625         public List<JCVariableDecl> defs;
  2626         public JCTree expr;
  2626         public JCExpression expr;
  2627         protected LetExpr(List<JCVariableDecl> defs, JCTree expr) {
  2627         protected LetExpr(List<JCVariableDecl> defs, JCExpression expr) {
  2628             this.defs = defs;
  2628             this.defs = defs;
  2629             this.expr = expr;
  2629             this.expr = expr;
  2630         }
  2630         }
  2631         @Override
  2631         @Override
  2632         public void accept(Visitor v) { v.visitLetExpr(this); }
  2632         public void accept(Visitor v) { v.visitLetExpr(this); }
  2729         JCWildcard Wildcard(TypeBoundKind kind, JCTree type);
  2729         JCWildcard Wildcard(TypeBoundKind kind, JCTree type);
  2730         TypeBoundKind TypeBoundKind(BoundKind kind);
  2730         TypeBoundKind TypeBoundKind(BoundKind kind);
  2731         JCAnnotation Annotation(JCTree annotationType, List<JCExpression> args);
  2731         JCAnnotation Annotation(JCTree annotationType, List<JCExpression> args);
  2732         JCModifiers Modifiers(long flags, List<JCAnnotation> annotations);
  2732         JCModifiers Modifiers(long flags, List<JCAnnotation> annotations);
  2733         JCErroneous Erroneous(List<? extends JCTree> errs);
  2733         JCErroneous Erroneous(List<? extends JCTree> errs);
  2734         LetExpr LetExpr(List<JCVariableDecl> defs, JCTree expr);
  2734         LetExpr LetExpr(List<JCVariableDecl> defs, JCExpression expr);
  2735     }
  2735     }
  2736 
  2736 
  2737     /** A generic visitor class for trees.
  2737     /** A generic visitor class for trees.
  2738      */
  2738      */
  2739     public static abstract class Visitor {
  2739     public static abstract class Visitor {