@@ -1125,6 +1125,23 @@ module Ruby {
11251125 final override string getAPrimaryQlClass ( ) { result = "Line" }
11261126 }
11271127
1128+ /** A class representing `match_pattern` nodes. */
1129+ class MatchPattern extends @ruby_match_pattern, AstNode {
1130+ /** Gets the name of the primary QL class for this element. */
1131+ final override string getAPrimaryQlClass ( ) { result = "MatchPattern" }
1132+
1133+ /** Gets the node corresponding to the field `pattern`. */
1134+ final UnderscorePatternTopExprBody getPattern ( ) { ruby_match_pattern_def ( this , result , _) }
1135+
1136+ /** Gets the node corresponding to the field `value`. */
1137+ final UnderscoreArg getValue ( ) { ruby_match_pattern_def ( this , _, result ) }
1138+
1139+ /** Gets a field or child node of this node. */
1140+ final override AstNode getAFieldOrChild ( ) {
1141+ ruby_match_pattern_def ( this , result , _) or ruby_match_pattern_def ( this , _, result )
1142+ }
1143+ }
1144+
11281145 /** A class representing `method` nodes. */
11291146 class Method extends @ruby_method, AstNode {
11301147 /** Gets the name of the primary QL class for this element. */
@@ -1662,6 +1679,23 @@ module Ruby {
16621679 final override AstNode getAFieldOrChild ( ) { ruby_symbol_array_child ( this , _, result ) }
16631680 }
16641681
1682+ /** A class representing `test_pattern` nodes. */
1683+ class TestPattern extends @ruby_test_pattern, AstNode {
1684+ /** Gets the name of the primary QL class for this element. */
1685+ final override string getAPrimaryQlClass ( ) { result = "TestPattern" }
1686+
1687+ /** Gets the node corresponding to the field `pattern`. */
1688+ final UnderscorePatternTopExprBody getPattern ( ) { ruby_test_pattern_def ( this , result , _) }
1689+
1690+ /** Gets the node corresponding to the field `value`. */
1691+ final UnderscoreArg getValue ( ) { ruby_test_pattern_def ( this , _, result ) }
1692+
1693+ /** Gets a field or child node of this node. */
1694+ final override AstNode getAFieldOrChild ( ) {
1695+ ruby_test_pattern_def ( this , result , _) or ruby_test_pattern_def ( this , _, result )
1696+ }
1697+ }
1698+
16651699 /** A class representing `then` nodes. */
16661700 class Then extends @ruby_then, AstNode {
16671701 /** Gets the name of the primary QL class for this element. */
0 commit comments