@@ -978,6 +978,23 @@ module Unified {
978978 }
979979 }
980980
981+ /** A class representing `or_pattern` nodes. */
982+ class OrPattern extends @unified_or_pattern, AstNode {
983+ /** Gets the name of the primary QL class for this element. */
984+ final override string getAPrimaryQlClass ( ) { result = "OrPattern" }
985+
986+ /** Gets the node corresponding to the field `modifier`. */
987+ final Modifier getModifier ( int i ) { unified_or_pattern_modifier ( this , i , result ) }
988+
989+ /** Gets the node corresponding to the field `pattern`. */
990+ final Pattern getPattern ( int i ) { unified_or_pattern_pattern ( this , i , result ) }
991+
992+ /** Gets a field or child node of this node. */
993+ final override AstNode getAFieldOrChild ( ) {
994+ unified_or_pattern_modifier ( this , _, result ) or unified_or_pattern_pattern ( this , _, result )
995+ }
996+ }
997+
981998 /** A class representing `parameter` nodes. */
982999 class Parameter extends @unified_parameter, AstNode {
9831000 /** Gets the name of the primary QL class for this element. */
@@ -1109,14 +1126,14 @@ module Unified {
11091126 final Modifier getModifier ( int i ) { unified_switch_case_modifier ( this , i , result ) }
11101127
11111128 /** Gets the node corresponding to the field `pattern`. */
1112- final Pattern getPattern ( int i ) { unified_switch_case_pattern ( this , i , result ) }
1129+ final Pattern getPattern ( ) { unified_switch_case_pattern ( this , result ) }
11131130
11141131 /** Gets a field or child node of this node. */
11151132 final override AstNode getAFieldOrChild ( ) {
11161133 unified_switch_case_def ( this , result ) or
11171134 unified_switch_case_guard ( this , result ) or
11181135 unified_switch_case_modifier ( this , _, result ) or
1119- unified_switch_case_pattern ( this , _ , result )
1136+ unified_switch_case_pattern ( this , result )
11201137 }
11211138 }
11221139
@@ -1654,6 +1671,10 @@ module Unified {
16541671 i = - 1 and
16551672 name = "getPrecedence"
16561673 or
1674+ result = node .( OrPattern ) .getModifier ( i ) and name = "getModifier"
1675+ or
1676+ result = node .( OrPattern ) .getPattern ( i ) and name = "getPattern"
1677+ or
16571678 result = node .( Parameter ) .getDefault ( ) and i = - 1 and name = "getDefault"
16581679 or
16591680 result = node .( Parameter ) .getExternalName ( ) and i = - 1 and name = "getExternalName"
@@ -1682,7 +1703,7 @@ module Unified {
16821703 or
16831704 result = node .( SwitchCase ) .getModifier ( i ) and name = "getModifier"
16841705 or
1685- result = node .( SwitchCase ) .getPattern ( i ) and name = "getPattern"
1706+ result = node .( SwitchCase ) .getPattern ( ) and i = - 1 and name = "getPattern"
16861707 or
16871708 result = node .( SwitchExpr ) .getCase ( i ) and name = "getCase"
16881709 or
0 commit comments