@@ -230,6 +230,8 @@ class IndexExprTree extends StandardPostOrderTree instanceof IndexExpr {
230
230
}
231
231
}
232
232
233
+ class ItemTree extends LeafTree , Item { }
234
+
233
235
// `LetExpr` is a pre-order tree such that the pattern itself ends up
234
236
// dominating successors in the graph in the same way that patterns do in
235
237
// `match` expressions.
@@ -472,18 +474,6 @@ class ParenExprTree extends StandardPostOrderTree, ParenExpr {
472
474
// This covers all patterns as they all extend `Pat`
473
475
class PatExprTree extends LeafTree instanceof Pat { }
474
476
475
- class PathTree extends StandardPostOrderTree , Path {
476
- override AstNode getChildNode ( int i ) {
477
- i = 0 and result = this .getQualifier ( )
478
- or
479
- i = 1 and result = this .getPart ( )
480
- }
481
- }
482
-
483
- class PathSegmentTree extends StandardPostOrderTree , PathSegment {
484
- override AstNode getChildNode ( int i ) { i = 0 and result = this .getNameRef ( ) }
485
- }
486
-
487
477
class PathExprTree extends LeafTree instanceof PathExpr { }
488
478
489
479
class PrefixExprTree extends StandardPostOrderTree instanceof PrefixExpr {
@@ -522,14 +512,6 @@ class ReturnExprTree extends PostOrderTree instanceof ReturnExpr {
522
512
}
523
513
}
524
514
525
- class StaticTree extends StandardPostOrderTree , Static {
526
- override AstNode getChildNode ( int i ) {
527
- i = 0 and result = this .getName ( )
528
- or
529
- i = 1 and result = this .getBody ( )
530
- }
531
- }
532
-
533
515
class TupleExprTree extends StandardPostOrderTree instanceof TupleExpr {
534
516
override AstNode getChildNode ( int i ) { result = super .getField ( i ) }
535
517
}
@@ -538,10 +520,6 @@ class TypeRefTree extends LeafTree instanceof TypeRef { }
538
520
539
521
class UnderscoreExprTree extends LeafTree instanceof UnderscoreExpr { }
540
522
541
- class UseTree_ extends StandardPreOrderTree , Use {
542
- override AstNode getChildNode ( int i ) { i = 0 and result = this .getUseTree ( ) .getPath ( ) }
543
- }
544
-
545
523
// NOTE: `yield` is a reserved but unused keyword.
546
524
class YieldExprTree extends StandardPostOrderTree instanceof YieldExpr {
547
525
override AstNode getChildNode ( int i ) { i = 0 and result = super .getExpr ( ) }
0 commit comments