equal
deleted
inserted
replaced
27 |
27 |
28 import java.util.Iterator; |
28 import java.util.Iterator; |
29 |
29 |
30 import com.sun.source.tree.CaseTree; |
30 import com.sun.source.tree.CaseTree; |
31 import com.sun.source.tree.ModuleTree.ModuleKind; |
31 import com.sun.source.tree.ModuleTree.ModuleKind; |
32 import com.sun.source.tree.Tree.Kind; |
|
33 import com.sun.tools.javac.code.*; |
32 import com.sun.tools.javac.code.*; |
34 import com.sun.tools.javac.code.Attribute.UnresolvedClass; |
33 import com.sun.tools.javac.code.Attribute.UnresolvedClass; |
35 import com.sun.tools.javac.code.Symbol.*; |
34 import com.sun.tools.javac.code.Symbol.*; |
36 import com.sun.tools.javac.code.Type.*; |
35 import com.sun.tools.javac.code.Type.*; |
37 import com.sun.tools.javac.util.*; |
36 import com.sun.tools.javac.util.*; |
459 return tree; |
458 return tree; |
460 } |
459 } |
461 |
460 |
462 public JCInstanceOf TypeTest(JCExpression expr, JCTree clazz) { |
461 public JCInstanceOf TypeTest(JCExpression expr, JCTree clazz) { |
463 JCInstanceOf tree = new JCInstanceOf(expr, clazz); |
462 JCInstanceOf tree = new JCInstanceOf(expr, clazz); |
|
463 tree.pos = pos; |
|
464 return tree; |
|
465 } |
|
466 |
|
467 public JCBindingPattern BindingPattern(Name name, JCTree vartype) { |
|
468 JCBindingPattern tree = new JCBindingPattern(name, null, vartype); |
464 tree.pos = pos; |
469 tree.pos = pos; |
465 return tree; |
470 return tree; |
466 } |
471 } |
467 |
472 |
468 public JCArrayAccess Indexed(JCExpression indexed, JCExpression index) { |
473 public JCArrayAccess Indexed(JCExpression indexed, JCExpression index) { |