@@ -1103,25 +1103,15 @@ module Swift {
11031103 /** Gets the name of the primary QL class for this element. */
11041104 final override string getAPrimaryQlClass ( ) { result = "GuardStatement" }
11051105
1106- /** Gets the node corresponding to the field `bound_identifier`. */
1107- final SimpleIdentifier getBoundIdentifier ( int i ) {
1108- swift_guard_statement_bound_identifier ( this , i , result )
1109- }
1110-
11111106 /** Gets the node corresponding to the field `condition`. */
1112- final AstNode getCondition ( int i ) { swift_guard_statement_condition ( this , i , result ) }
1113-
1114- /** Gets the node corresponding to the field `name`. */
1115- final AstNode getName ( int i ) { swift_guard_statement_name ( this , i , result ) }
1107+ final IfCondition getCondition ( int i ) { swift_guard_statement_condition ( this , i , result ) }
11161108
11171109 /** Gets the `i`th child of this node. */
11181110 final AstNode getChild ( int i ) { swift_guard_statement_child ( this , i , result ) }
11191111
11201112 /** Gets a field or child node of this node. */
11211113 final override AstNode getAFieldOrChild ( ) {
1122- swift_guard_statement_bound_identifier ( this , _, result ) or
11231114 swift_guard_statement_condition ( this , _, result ) or
1124- swift_guard_statement_name ( this , _, result ) or
11251115 swift_guard_statement_child ( this , _, result )
11261116 }
11271117 }
@@ -1144,31 +1134,44 @@ module Swift {
11441134 final override AstNode getAFieldOrChild ( ) { swift_identifier_child ( this , _, result ) }
11451135 }
11461136
1147- /** A class representing `if_statement ` nodes. */
1148- class IfStatement extends @swift_if_statement , AstNode {
1137+ /** A class representing `if_condition ` nodes. */
1138+ class IfCondition extends @swift_if_condition , AstNode {
11491139 /** Gets the name of the primary QL class for this element. */
1150- final override string getAPrimaryQlClass ( ) { result = "IfStatement " }
1140+ final override string getAPrimaryQlClass ( ) { result = "IfCondition " }
11511141
11521142 /** Gets the node corresponding to the field `bound_identifier`. */
1153- final SimpleIdentifier getBoundIdentifier ( int i ) {
1154- swift_if_statement_bound_identifier ( this , i , result )
1143+ final SimpleIdentifier getBoundIdentifier ( ) {
1144+ swift_if_condition_bound_identifier ( this , result )
11551145 }
11561146
1157- /** Gets the node corresponding to the field `condition`. */
1158- final AstNode getCondition ( int i ) { swift_if_statement_condition ( this , i , result ) }
1159-
11601147 /** Gets the node corresponding to the field `name`. */
1161- final AstNode getName ( int i ) { swift_if_statement_name ( this , i , result ) }
1148+ final AstNode getName ( ) { swift_if_condition_name ( this , result ) }
1149+
1150+ /** Gets the `i`th child of this node. */
1151+ final AstNode getChild ( int i ) { swift_if_condition_child ( this , i , result ) }
1152+
1153+ /** Gets a field or child node of this node. */
1154+ final override AstNode getAFieldOrChild ( ) {
1155+ swift_if_condition_bound_identifier ( this , result ) or
1156+ swift_if_condition_name ( this , result ) or
1157+ swift_if_condition_child ( this , _, result )
1158+ }
1159+ }
1160+
1161+ /** A class representing `if_statement` nodes. */
1162+ class IfStatement extends @swift_if_statement, AstNode {
1163+ /** Gets the name of the primary QL class for this element. */
1164+ final override string getAPrimaryQlClass ( ) { result = "IfStatement" }
1165+
1166+ /** Gets the node corresponding to the field `condition`. */
1167+ final IfCondition getCondition ( int i ) { swift_if_statement_condition ( this , i , result ) }
11621168
11631169 /** Gets the `i`th child of this node. */
11641170 final AstNode getChild ( int i ) { swift_if_statement_child ( this , i , result ) }
11651171
11661172 /** Gets a field or child node of this node. */
11671173 final override AstNode getAFieldOrChild ( ) {
1168- swift_if_statement_bound_identifier ( this , _, result ) or
1169- swift_if_statement_condition ( this , _, result ) or
1170- swift_if_statement_name ( this , _, result ) or
1171- swift_if_statement_child ( this , _, result )
1174+ swift_if_statement_condition ( this , _, result ) or swift_if_statement_child ( this , _, result )
11721175 }
11731176 }
11741177
@@ -2190,25 +2193,17 @@ module Swift {
21902193 /** Gets the name of the primary QL class for this element. */
21912194 final override string getAPrimaryQlClass ( ) { result = "RepeatWhileStatement" }
21922195
2193- /** Gets the node corresponding to the field `bound_identifier`. */
2194- final SimpleIdentifier getBoundIdentifier ( int i ) {
2195- swift_repeat_while_statement_bound_identifier ( this , i , result )
2196- }
2197-
21982196 /** Gets the node corresponding to the field `condition`. */
2199- final AstNode getCondition ( int i ) { swift_repeat_while_statement_condition ( this , i , result ) }
2200-
2201- /** Gets the node corresponding to the field `name`. */
2202- final AstNode getName ( int i ) { swift_repeat_while_statement_name ( this , i , result ) }
2197+ final IfCondition getCondition ( int i ) {
2198+ swift_repeat_while_statement_condition ( this , i , result )
2199+ }
22032200
22042201 /** Gets the child of this node. */
22052202 final Statements getChild ( ) { swift_repeat_while_statement_child ( this , result ) }
22062203
22072204 /** Gets a field or child node of this node. */
22082205 final override AstNode getAFieldOrChild ( ) {
2209- swift_repeat_while_statement_bound_identifier ( this , _, result ) or
22102206 swift_repeat_while_statement_condition ( this , _, result ) or
2211- swift_repeat_while_statement_name ( this , _, result ) or
22122207 swift_repeat_while_statement_child ( this , result )
22132208 }
22142209 }
@@ -2813,26 +2808,15 @@ module Swift {
28132808 /** Gets the name of the primary QL class for this element. */
28142809 final override string getAPrimaryQlClass ( ) { result = "WhileStatement" }
28152810
2816- /** Gets the node corresponding to the field `bound_identifier`. */
2817- final SimpleIdentifier getBoundIdentifier ( int i ) {
2818- swift_while_statement_bound_identifier ( this , i , result )
2819- }
2820-
28212811 /** Gets the node corresponding to the field `condition`. */
2822- final AstNode getCondition ( int i ) { swift_while_statement_condition ( this , i , result ) }
2823-
2824- /** Gets the node corresponding to the field `name`. */
2825- final AstNode getName ( int i ) { swift_while_statement_name ( this , i , result ) }
2812+ final IfCondition getCondition ( int i ) { swift_while_statement_condition ( this , i , result ) }
28262813
28272814 /** Gets the child of this node. */
28282815 final Statements getChild ( ) { swift_while_statement_child ( this , result ) }
28292816
28302817 /** Gets a field or child node of this node. */
28312818 final override AstNode getAFieldOrChild ( ) {
2832- swift_while_statement_bound_identifier ( this , _, result ) or
2833- swift_while_statement_condition ( this , _, result ) or
2834- swift_while_statement_name ( this , _, result ) or
2835- swift_while_statement_child ( this , result )
2819+ swift_while_statement_condition ( this , _, result ) or swift_while_statement_child ( this , result )
28362820 }
28372821 }
28382822
0 commit comments