@@ -210,14 +210,13 @@ module ExprTrees {
210210 override AstNode getChildNode ( int i ) { i = 0 and result = super .getExpr ( ) }
211211 }
212212
213- class BinaryOpExprTree extends StandardPostOrderTree instanceof BinaryExpr {
214- BinaryOpExprTree ( ) { not this instanceof BinaryLogicalOperation }
215-
216- override AstNode getChildNode ( int i ) {
217- i = 0 and result = super .getLhs ( )
218- or
219- i = 1 and result = super .getRhs ( )
213+ class ArgsExprTree extends StandardPostOrderTree instanceof ArgsExpr {
214+ ArgsExprTree ( ) {
215+ not this instanceof CallExpr and
216+ not this instanceof BinaryLogicalOperation
220217 }
218+
219+ override AstNode getChildNode ( int i ) { result = super .getSyntacticArgument ( i ) }
221220 }
222221
223222 class LogicalOrExprTree extends PostOrderTree , LogicalOrExpr {
@@ -296,7 +295,7 @@ module ExprTrees {
296295 override AstNode getChildNode ( int i ) {
297296 i = 0 and result = super .getFunction ( )
298297 or
299- result = super .getArgList ( ) . getArg ( i - 1 )
298+ result = super .getSyntacticArgument ( i - 1 )
300299 }
301300 }
302301
@@ -371,14 +370,6 @@ module ExprTrees {
371370 }
372371 }
373372
374- class IndexExprTree extends StandardPostOrderTree instanceof IndexExpr {
375- override AstNode getChildNode ( int i ) {
376- i = 0 and result = super .getBase ( )
377- or
378- i = 1 and result = super .getIndex ( )
379- }
380- }
381-
382373 class LetExprTree extends StandardPostOrderTree , LetExpr {
383374 override AstNode getChildNode ( int i ) {
384375 i = 0 and
@@ -510,12 +501,6 @@ module ExprTrees {
510501 }
511502 }
512503
513- class MethodCallExprTree extends StandardPostOrderTree , MethodCallExpr {
514- override AstNode getChildNode ( int i ) {
515- if i = 0 then result = this .getReceiver ( ) else result = this .getArgList ( ) .getArg ( i - 1 )
516- }
517- }
518-
519504 class OffsetOfExprTree extends LeafTree instanceof OffsetOfExpr { }
520505
521506 class ParenExprTree extends ControlFlowTree , ParenExpr {
@@ -534,10 +519,6 @@ module ExprTrees {
534519
535520 class PathExprTree extends LeafTree instanceof PathExpr { }
536521
537- class PrefixExprTree extends StandardPostOrderTree instanceof PrefixExpr {
538- override AstNode getChildNode ( int i ) { i = 0 and result = super .getExpr ( ) }
539- }
540-
541522 class RangeExprTree extends StandardPostOrderTree instanceof RangeExpr {
542523 override AstNode getChildNode ( int i ) {
543524 i = 0 and result = super .getStart ( )
0 commit comments