@@ -1005,90 +1005,101 @@ control/cases.rb:
1005
1005
# 106| getAnOperand/getOperand/getReceiver: [IntegerLiteral] 5
1006
1006
# 106| getAlternative: [UnaryPlusExpr] + ...
1007
1007
# 106| getAnOperand/getOperand/getReceiver: [IntegerLiteral] 10
1008
- # 111| getStmt: [CaseExpr] case ...
1009
- # 111| getValue: [MethodCall] call to expr
1010
- # 111| getReceiver: [Self, SelfVariableAccess] self
1011
- # 112| getBranch: [InClause] in ... then ...
1012
- # 112| getPattern: [ArrayPattern] [ ..., * ]
1013
- # 113| getBranch: [InClause] in ... then ...
1014
- # 113| getPattern: [ArrayPattern] [ ..., * ]
1015
- # 113| getPrefixElement: [LocalVariableAccess] x
1008
+ # 107| getBranch: [InClause] in ... then ...
1009
+ # 107| getPattern: [ParenthesizedPattern] ( ... )
1010
+ # 107| getPattern: [RangeLiteral] _ .. _
1011
+ # 107| getBegin: [IntegerLiteral] 1
1012
+ # 108| getBranch: [InClause] in ... then ...
1013
+ # 108| getPattern: [ParenthesizedPattern] ( ... )
1014
+ # 108| getPattern: [AlternativePattern] ... | ...
1015
+ # 108| getAlternative: [IntegerLiteral] 0
1016
+ # 108| getAlternative: [StringLiteral] ""
1017
+ # 108| getAlternative: [ArrayPattern] [ ..., * ]
1018
+ # 108| getAlternative: [HashPattern] { ..., ** }
1019
+ # 113| getStmt: [CaseExpr] case ...
1020
+ # 113| getValue: [MethodCall] call to expr
1021
+ # 113| getReceiver: [Self, SelfVariableAccess] self
1016
1022
# 114| getBranch: [InClause] in ... then ...
1017
1023
# 114| getPattern: [ArrayPattern] [ ..., * ]
1018
- # 114| getPrefixElement/getSuffixElement: [LocalVariableAccess] x
1019
1024
# 115| getBranch: [InClause] in ... then ...
1020
1025
# 115| getPattern: [ArrayPattern] [ ..., * ]
1021
- # 115| getClass: [ConstantReadAccess] Bar
1022
- # 115| getScopeExpr: [ConstantReadAccess] Foo
1026
+ # 115| getPrefixElement: [LocalVariableAccess] x
1023
1027
# 116| getBranch: [InClause] in ... then ...
1024
1028
# 116| getPattern: [ArrayPattern] [ ..., * ]
1025
- # 116| getClass : [ConstantReadAccess] Foo
1029
+ # 116| getPrefixElement/getSuffixElement : [LocalVariableAccess] x
1026
1030
# 117| getBranch: [InClause] in ... then ...
1027
1031
# 117| getPattern: [ArrayPattern] [ ..., * ]
1028
1032
# 117| getClass: [ConstantReadAccess] Bar
1033
+ # 117| getScopeExpr: [ConstantReadAccess] Foo
1029
1034
# 118| getBranch: [InClause] in ... then ...
1030
1035
# 118| getPattern: [ArrayPattern] [ ..., * ]
1031
- # 118| getClass: [ConstantReadAccess] Bar
1032
- # 118| getPrefixElement/getSuffixElement: [LocalVariableAccess] a
1033
- # 118| getPrefixElement/getSuffixElement: [LocalVariableAccess] b
1034
- # 118| getRestVariableAccess: [LocalVariableAccess] c
1035
- # 118| getSuffixElement: [LocalVariableAccess] d
1036
- # 118| getSuffixElement: [LocalVariableAccess] e
1037
- # 123| getStmt: [CaseExpr] case ...
1038
- # 123| getValue: [MethodCall] call to expr
1039
- # 123| getReceiver: [Self, SelfVariableAccess] self
1040
- # 124| getBranch: [InClause] in ... then ...
1041
- # 124| getPattern: [FindPattern] [ *,...,* ]
1042
- # 124| getElement: [LocalVariableAccess] x
1043
- # 125| getBranch: [InClause] in ... then ...
1044
- # 125| getPattern: [FindPattern] [ *,...,* ]
1045
- # 125| getPrefixVariableAccess: [LocalVariableAccess] x
1046
- # 125| getElement: [IntegerLiteral] 1
1047
- # 125| getElement: [IntegerLiteral] 2
1048
- # 125| getSuffixVariableAccess: [LocalVariableAccess] y
1036
+ # 118| getClass: [ConstantReadAccess] Foo
1037
+ # 119| getBranch: [InClause] in ... then ...
1038
+ # 119| getPattern: [ArrayPattern] [ ..., * ]
1039
+ # 119| getClass: [ConstantReadAccess] Bar
1040
+ # 120| getBranch: [InClause] in ... then ...
1041
+ # 120| getPattern: [ArrayPattern] [ ..., * ]
1042
+ # 120| getClass: [ConstantReadAccess] Bar
1043
+ # 120| getPrefixElement/getSuffixElement: [LocalVariableAccess] a
1044
+ # 120| getPrefixElement/getSuffixElement: [LocalVariableAccess] b
1045
+ # 120| getRestVariableAccess: [LocalVariableAccess] c
1046
+ # 120| getSuffixElement: [LocalVariableAccess] d
1047
+ # 120| getSuffixElement: [LocalVariableAccess] e
1048
+ # 125| getStmt: [CaseExpr] case ...
1049
+ # 125| getValue: [MethodCall] call to expr
1050
+ # 125| getReceiver: [Self, SelfVariableAccess] self
1049
1051
# 126| getBranch: [InClause] in ... then ...
1050
1052
# 126| getPattern: [FindPattern] [ *,...,* ]
1051
- # 126| getClass: [ConstantReadAccess] Bar
1052
- # 126| getScopeExpr: [ConstantReadAccess] Foo
1053
- # 126| getElement: [IntegerLiteral] 1
1053
+ # 126| getElement: [LocalVariableAccess] x
1054
1054
# 127| getBranch: [InClause] in ... then ...
1055
1055
# 127| getPattern: [FindPattern] [ *,...,* ]
1056
- # 127| getClass: [ConstantReadAccess] Foo
1057
- # 127| getElement: [ConstantReadAccess] Bar
1058
- # 132| getStmt: [CaseExpr] case ...
1059
- # 132| getValue: [MethodCall] call to expr
1060
- # 132| getReceiver: [Self, SelfVariableAccess] self
1061
- # 133| getBranch: [InClause] in ... then ...
1062
- # 133| getPattern: [HashPattern] { ..., ** }
1063
- # 134| getBranch: [InClause] in ... then ...
1064
- # 134| getPattern: [HashPattern] { ..., ** }
1065
- # 134| getKey: [SymbolLiteral] :x
1056
+ # 127| getPrefixVariableAccess: [LocalVariableAccess] x
1057
+ # 127| getElement: [IntegerLiteral] 1
1058
+ # 127| getElement: [IntegerLiteral] 2
1059
+ # 127| getSuffixVariableAccess: [LocalVariableAccess] y
1060
+ # 128| getBranch: [InClause] in ... then ...
1061
+ # 128| getPattern: [FindPattern] [ *,...,* ]
1062
+ # 128| getClass: [ConstantReadAccess] Bar
1063
+ # 128| getScopeExpr: [ConstantReadAccess] Foo
1064
+ # 128| getElement: [IntegerLiteral] 1
1065
+ # 129| getBranch: [InClause] in ... then ...
1066
+ # 129| getPattern: [FindPattern] [ *,...,* ]
1067
+ # 129| getClass: [ConstantReadAccess] Foo
1068
+ # 129| getElement: [ConstantReadAccess] Bar
1069
+ # 134| getStmt: [CaseExpr] case ...
1070
+ # 134| getValue: [MethodCall] call to expr
1071
+ # 134| getReceiver: [Self, SelfVariableAccess] self
1066
1072
# 135| getBranch: [InClause] in ... then ...
1067
1073
# 135| getPattern: [HashPattern] { ..., ** }
1068
- # 135| getClass: [ConstantReadAccess] Bar
1069
- # 135| getScopeExpr: [ConstantReadAccess] Foo
1070
- # 135| getKey: [SymbolLiteral] :x
1071
- # 135| getValue: [IntegerLiteral] 1
1072
1074
# 136| getBranch: [InClause] in ... then ...
1073
1075
# 136| getPattern: [HashPattern] { ..., ** }
1074
- # 136| getClass: [ConstantReadAccess] Bar
1075
- # 136| getScopeExpr: [ConstantReadAccess] Foo
1076
1076
# 136| getKey: [SymbolLiteral] :x
1077
- # 136| getValue: [IntegerLiteral] 1
1078
- # 136| getKey: [SymbolLiteral] :a
1079
- # 136| getRestVariableAccess: [LocalVariableAccess] rest
1080
1077
# 137| getBranch: [InClause] in ... then ...
1081
1078
# 137| getPattern: [HashPattern] { ..., ** }
1082
- # 137| getClass: [ConstantReadAccess] Foo
1083
- # 137| getKey: [SymbolLiteral] :y
1079
+ # 137| getClass: [ConstantReadAccess] Bar
1080
+ # 137| getScopeExpr: [ConstantReadAccess] Foo
1081
+ # 137| getKey: [SymbolLiteral] :x
1082
+ # 137| getValue: [IntegerLiteral] 1
1084
1083
# 138| getBranch: [InClause] in ... then ...
1085
1084
# 138| getPattern: [HashPattern] { ..., ** }
1086
1085
# 138| getClass: [ConstantReadAccess] Bar
1086
+ # 138| getScopeExpr: [ConstantReadAccess] Foo
1087
+ # 138| getKey: [SymbolLiteral] :x
1088
+ # 138| getValue: [IntegerLiteral] 1
1089
+ # 138| getKey: [SymbolLiteral] :a
1090
+ # 138| getRestVariableAccess: [LocalVariableAccess] rest
1087
1091
# 139| getBranch: [InClause] in ... then ...
1088
1092
# 139| getPattern: [HashPattern] { ..., ** }
1089
- # 139| getClass: [ConstantReadAccess] Bar
1090
- # 139| getKey: [SymbolLiteral] :a
1091
- # 139| getValue: [IntegerLiteral] 1
1093
+ # 139| getClass: [ConstantReadAccess] Foo
1094
+ # 139| getKey: [SymbolLiteral] :y
1095
+ # 140| getBranch: [InClause] in ... then ...
1096
+ # 140| getPattern: [HashPattern] { ..., ** }
1097
+ # 140| getClass: [ConstantReadAccess] Bar
1098
+ # 141| getBranch: [InClause] in ... then ...
1099
+ # 141| getPattern: [HashPattern] { ..., ** }
1100
+ # 141| getClass: [ConstantReadAccess] Bar
1101
+ # 141| getKey: [SymbolLiteral] :a
1102
+ # 141| getValue: [IntegerLiteral] 1
1092
1103
modules/classes.rb:
1093
1104
# 2| [Toplevel] classes.rb
1094
1105
# 3| getStmt: [ClassDeclaration] Foo
0 commit comments