@@ -956,6 +956,34 @@ module Unified {
956956 }
957957 }
958958
959+ /** A class representing `macro_call_expr` nodes. */
960+ class MacroCallExpr extends @unified_macro_call_expr, F:: Expr {
961+ /** Gets the name of the primary QL class for this element. */
962+ final override string getAPrimaryQlClass ( ) { result = "MacroCallExpr" }
963+
964+ /** Gets the node corresponding to the field `argument`. */
965+ final F:: Argument getArgument ( int i ) { unified_macro_call_expr_argument ( this , i , result ) }
966+
967+ /** Gets the node corresponding to the field `argument`. */
968+ final F:: Argument getAnArgument ( ) { result = this .getArgument ( _) }
969+
970+ /** Gets the node corresponding to the field `macro_name_node`. */
971+ final F:: Identifier getMacroNameNode ( ) { unified_macro_call_expr_def ( this , result ) }
972+
973+ /** Gets the node corresponding to the field `type_argument`. */
974+ final F:: Expr getTypeArgument ( int i ) { unified_macro_call_expr_type_argument ( this , i , result ) }
975+
976+ /** Gets the node corresponding to the field `type_argument`. */
977+ final F:: Expr getATypeArgument ( ) { result = this .getTypeArgument ( _) }
978+
979+ /** Gets a field or child node of this node. */
980+ final override F:: AstNode getAFieldOrChild ( ) {
981+ unified_macro_call_expr_argument ( this , _, result ) or
982+ unified_macro_call_expr_def ( this , result ) or
983+ unified_macro_call_expr_type_argument ( this , _, result )
984+ }
985+ }
986+
959987 /** A class representing `map_literal` nodes. */
960988 class MapLiteral extends @unified_map_literal, F:: Expr {
961989 /** Gets the name of the primary QL class for this element. */
@@ -1717,6 +1745,12 @@ module Unified {
17171745 or
17181746 result = node .( LabeledStmt ) .getStmt ( ) and i = - 1 and name = "getStmt"
17191747 or
1748+ result = node .( MacroCallExpr ) .getArgument ( i ) and name = "getArgument"
1749+ or
1750+ result = node .( MacroCallExpr ) .getMacroNameNode ( ) and i = - 1 and name = "getMacroNameNode"
1751+ or
1752+ result = node .( MacroCallExpr ) .getTypeArgument ( i ) and name = "getTypeArgument"
1753+ or
17201754 result = node .( MapLiteral ) .getElement ( i ) and name = "getElement"
17211755 or
17221756 result = node .( MemberAccessExpr ) .getBase ( ) and i = - 1 and name = "getBase"
@@ -1938,6 +1972,8 @@ module UnifiedFinal {
19381972
19391973 final class LabeledStmt = F:: LabeledStmt ;
19401974
1975+ final class MacroCallExpr = F:: MacroCallExpr ;
1976+
19411977 final class MapLiteral = F:: MapLiteral ;
19421978
19431979 final class Member = F:: Member ;
0 commit comments