| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library dart2js.semantics_visitor_test; | 5 library dart2js.semantics_visitor_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'package:async_helper/async_helper.dart'; | 8 import 'package:async_helper/async_helper.dart'; |
| 9 import 'package:expect/expect.dart'; | 9 import 'package:expect/expect.dart'; |
| 10 import 'package:compiler/src/constants/expressions.dart'; | 10 import 'package:compiler/src/constants/expressions.dart'; |
| (...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 const Test.clazz( | 807 const Test.clazz( |
| 808 ''' | 808 ''' |
| 809 class B { | 809 class B { |
| 810 var o; | 810 var o; |
| 811 } | 811 } |
| 812 class C extends B { | 812 class C extends B { |
| 813 m() { super.o(null, 42); } | 813 m() { super.o(null, 42); } |
| 814 } | 814 } |
| 815 ''', | 815 ''', |
| 816 const Visit(VisitKind.VISIT_SUPER_FIELD_INVOKE, | 816 const Visit(VisitKind.VISIT_SUPER_FIELD_INVOKE, |
| 817 element: 'field(B#o)', | 817 element: 'field(B#o)', |
| 818 arguments: '(null,42)')), | 818 arguments: '(null,42)')), |
| 819 const Test.clazz( |
| 820 ''' |
| 821 class B { |
| 822 } |
| 823 class C extends B { |
| 824 m() => super.o; |
| 825 } |
| 826 ''', |
| 827 const Visit(VisitKind.VISIT_UNRESOLVED_SUPER_GET)), |
| 819 ], | 828 ], |
| 820 'Super properties': const [ | 829 'Super properties': const [ |
| 821 // Super properties | 830 // Super properties |
| 822 const Test.clazz( | 831 const Test.clazz( |
| 823 ''' | 832 ''' |
| 824 class B { | 833 class B { |
| 825 get o => null; | 834 get o => null; |
| 826 } | 835 } |
| 827 class C extends B { | 836 class C extends B { |
| 828 m() => super.o; | 837 m() => super.o; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 873 class B { | 882 class B { |
| 874 o(a, b) {} | 883 o(a, b) {} |
| 875 } | 884 } |
| 876 class C extends B { | 885 class C extends B { |
| 877 m() { super.o(null, 42); } | 886 m() { super.o(null, 42); } |
| 878 } | 887 } |
| 879 ''', | 888 ''', |
| 880 const Visit(VisitKind.VISIT_SUPER_METHOD_INVOKE, | 889 const Visit(VisitKind.VISIT_SUPER_METHOD_INVOKE, |
| 881 element: 'function(B#o)', | 890 element: 'function(B#o)', |
| 882 arguments: '(null,42)')), | 891 arguments: '(null,42)')), |
| 892 const Test.clazz( |
| 893 ''' |
| 894 class B { |
| 895 o(a, b) {} |
| 896 } |
| 897 class C extends B { |
| 898 m() { super.o(null); } |
| 899 } |
| 900 ''', |
| 901 const Visit(VisitKind.VISIT_SUPER_METHOD_INCOMPATIBLE_INVOKE, |
| 902 element: 'function(B#o)', |
| 903 arguments: '(null)')), |
| 904 const Test.clazz( |
| 905 ''' |
| 906 class B { |
| 907 } |
| 908 class C extends B { |
| 909 m() => super.o(null, 42); |
| 910 } |
| 911 ''', |
| 912 const Visit(VisitKind.VISIT_UNRESOLVED_SUPER_INVOKE, |
| 913 arguments: '(null,42)')), |
| 883 ], | 914 ], |
| 884 'Expression invoke': const [ | 915 'Expression invoke': const [ |
| 885 // Expression invoke | 916 // Expression invoke |
| 886 const Test('m() => (a, b){}(null, 42);', | 917 const Test('m() => (a, b){}(null, 42);', |
| 887 const Visit(VisitKind.VISIT_EXPRESSION_INVOKE, | 918 const Visit(VisitKind.VISIT_EXPRESSION_INVOKE, |
| 888 receiver: '(a,b){}', | 919 receiver: '(a,b){}', |
| 889 arguments: '(null,42)')), | 920 arguments: '(null,42)')), |
| 890 ], | 921 ], |
| 891 'Class type literals': const [ | 922 'Class type literals': const [ |
| 892 // Class type literals | 923 // Class type literals |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1112 operator +(_) => null; | 1143 operator +(_) => null; |
| 1113 } | 1144 } |
| 1114 class C extends B { | 1145 class C extends B { |
| 1115 m() => super + 42; | 1146 m() => super + 42; |
| 1116 } | 1147 } |
| 1117 ''', | 1148 ''', |
| 1118 const Visit(VisitKind.VISIT_SUPER_BINARY, | 1149 const Visit(VisitKind.VISIT_SUPER_BINARY, |
| 1119 element: 'function(B#+)', | 1150 element: 'function(B#+)', |
| 1120 operator: '+', | 1151 operator: '+', |
| 1121 right: '42')), | 1152 right: '42')), |
| 1153 const Test.clazz( |
| 1154 ''' |
| 1155 class B {} |
| 1156 class C extends B { |
| 1157 m() => super + 42; |
| 1158 } |
| 1159 ''', |
| 1160 const Visit(VisitKind.VISIT_UNRESOLVED_SUPER_BINARY, |
| 1161 operator: '+', |
| 1162 right: '42')), |
| 1122 ], | 1163 ], |
| 1123 'Index': const [ | 1164 'Index': const [ |
| 1124 // Index | 1165 // Index |
| 1125 const Test( | 1166 const Test( |
| 1126 ''' | 1167 ''' |
| 1127 m() => 2[3]; | 1168 m() => 2[3]; |
| 1128 ''', | 1169 ''', |
| 1129 const Visit(VisitKind.VISIT_INDEX, | 1170 const Visit(VisitKind.VISIT_INDEX, |
| 1130 receiver: '2', index: '3')), | 1171 receiver: '2', index: '3')), |
| 1131 const Test( | 1172 const Test( |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1148 class C extends B { | 1189 class C extends B { |
| 1149 m() => super[42]; | 1190 m() => super[42]; |
| 1150 } | 1191 } |
| 1151 ''', | 1192 ''', |
| 1152 const Visit(VisitKind.VISIT_SUPER_INDEX, | 1193 const Visit(VisitKind.VISIT_SUPER_INDEX, |
| 1153 element: 'function(B#[])', | 1194 element: 'function(B#[])', |
| 1154 index: '42')), | 1195 index: '42')), |
| 1155 const Test.clazz( | 1196 const Test.clazz( |
| 1156 ''' | 1197 ''' |
| 1157 class B { | 1198 class B { |
| 1199 } |
| 1200 class C extends B { |
| 1201 m() => super[42]; |
| 1202 } |
| 1203 ''', |
| 1204 const Visit(VisitKind.VISIT_UNRESOLVED_SUPER_INDEX, |
| 1205 index: '42')), |
| 1206 const Test.clazz( |
| 1207 ''' |
| 1208 class B { |
| 1158 operator [](_) => null; | 1209 operator [](_) => null; |
| 1159 operator []=(a, b) {} | 1210 operator []=(a, b) {} |
| 1160 } | 1211 } |
| 1161 class C extends B { | 1212 class C extends B { |
| 1162 m() => ++super[42]; | 1213 m() => ++super[42]; |
| 1163 } | 1214 } |
| 1164 ''', | 1215 ''', |
| 1165 const Visit(VisitKind.VISIT_SUPER_INDEX_PREFIX, | 1216 const Visit(VisitKind.VISIT_SUPER_INDEX_PREFIX, |
| 1166 getter: 'function(B#[])', | 1217 getter: 'function(B#[])', |
| 1167 setter: 'function(B#[]=)', | 1218 setter: 'function(B#[]=)', |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1247 } | 1298 } |
| 1248 class C extends B { | 1299 class C extends B { |
| 1249 m() => -super; | 1300 m() => -super; |
| 1250 } | 1301 } |
| 1251 ''', | 1302 ''', |
| 1252 const Visit(VisitKind.VISIT_SUPER_UNARY, | 1303 const Visit(VisitKind.VISIT_SUPER_UNARY, |
| 1253 element: 'function(B#unary-)', operator: '-')), | 1304 element: 'function(B#unary-)', operator: '-')), |
| 1254 const Test.clazz( | 1305 const Test.clazz( |
| 1255 ''' | 1306 ''' |
| 1256 class B { | 1307 class B { |
| 1308 } |
| 1309 class C extends B { |
| 1310 m() => -super; |
| 1311 } |
| 1312 ''', |
| 1313 const Visit(VisitKind.VISIT_UNRESOLVED_SUPER_UNARY, |
| 1314 operator: '-')), |
| 1315 const Test.clazz( |
| 1316 ''' |
| 1317 class B { |
| 1257 operator ~() => null; | 1318 operator ~() => null; |
| 1258 } | 1319 } |
| 1259 class C extends B { | 1320 class C extends B { |
| 1260 m() => ~super; | 1321 m() => ~super; |
| 1261 } | 1322 } |
| 1262 ''', | 1323 ''', |
| 1263 const Visit(VisitKind.VISIT_SUPER_UNARY, | 1324 const Visit(VisitKind.VISIT_SUPER_UNARY, |
| 1264 element: 'function(B#~)', operator: '~')), | 1325 element: 'function(B#~)', operator: '~')), |
| 1265 const Test( | 1326 const Test( |
| 1266 ''' | 1327 ''' |
| (...skipping 2345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3612 } | 3673 } |
| 3613 | 3674 |
| 3614 @override | 3675 @override |
| 3615 visitSuperBinary( | 3676 visitSuperBinary( |
| 3616 Send node, | 3677 Send node, |
| 3617 FunctionElement function, | 3678 FunctionElement function, |
| 3618 BinaryOperator operator, | 3679 BinaryOperator operator, |
| 3619 Node argument, | 3680 Node argument, |
| 3620 arg) { | 3681 arg) { |
| 3621 visits.add(new Visit(VisitKind.VISIT_SUPER_BINARY, | 3682 visits.add(new Visit(VisitKind.VISIT_SUPER_BINARY, |
| 3622 element: function, operator: operator, right: argument)); | 3683 element: function, operator: operator, right: argument)); |
| 3623 apply(argument, arg); | 3684 apply(argument, arg); |
| 3624 } | 3685 } |
| 3625 | 3686 |
| 3626 @override | 3687 @override |
| 3688 visitUnresolvedSuperBinary( |
| 3689 Send node, |
| 3690 Element element, |
| 3691 BinaryOperator operator, |
| 3692 Node argument, |
| 3693 arg) { |
| 3694 visits.add(new Visit(VisitKind.VISIT_UNRESOLVED_SUPER_BINARY, |
| 3695 operator: operator, right: argument)); |
| 3696 apply(argument, arg); |
| 3697 } |
| 3698 |
| 3699 |
| 3700 @override |
| 3627 visitSuperIndex( | 3701 visitSuperIndex( |
| 3628 Send node, | 3702 Send node, |
| 3629 FunctionElement function, | 3703 FunctionElement function, |
| 3630 Node index, | 3704 Node index, |
| 3631 arg) { | 3705 arg) { |
| 3632 visits.add(new Visit(VisitKind.VISIT_SUPER_INDEX, | 3706 visits.add(new Visit(VisitKind.VISIT_SUPER_INDEX, |
| 3633 element: function, index: index)); | 3707 element: function, index: index)); |
| 3634 apply(index, arg); | 3708 apply(index, arg); |
| 3635 } | 3709 } |
| 3636 | 3710 |
| 3637 @override | 3711 @override |
| 3712 visitUnresolvedSuperIndex( |
| 3713 Send node, |
| 3714 Element element, |
| 3715 Node index, |
| 3716 arg) { |
| 3717 visits.add(new Visit(VisitKind.VISIT_UNRESOLVED_SUPER_INDEX, |
| 3718 index: index)); |
| 3719 apply(index, arg); |
| 3720 } |
| 3721 |
| 3722 @override |
| 3638 visitSuperNotEquals( | 3723 visitSuperNotEquals( |
| 3639 Send node, | 3724 Send node, |
| 3640 FunctionElement function, | 3725 FunctionElement function, |
| 3641 Node argument, | 3726 Node argument, |
| 3642 arg) { | 3727 arg) { |
| 3643 visits.add(new Visit(VisitKind.VISIT_SUPER_NOT_EQUALS, | 3728 visits.add(new Visit(VisitKind.VISIT_SUPER_NOT_EQUALS, |
| 3644 element: function, right: argument)); | 3729 element: function, right: argument)); |
| 3645 apply(argument, arg); | 3730 apply(argument, arg); |
| 3646 } | 3731 } |
| 3647 | 3732 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3861 | 3946 |
| 3862 @override | 3947 @override |
| 3863 visitSuperFieldGet( | 3948 visitSuperFieldGet( |
| 3864 Send node, | 3949 Send node, |
| 3865 FieldElement field, | 3950 FieldElement field, |
| 3866 arg) { | 3951 arg) { |
| 3867 visits.add(new Visit(VisitKind.VISIT_SUPER_FIELD_GET, element: field)); | 3952 visits.add(new Visit(VisitKind.VISIT_SUPER_FIELD_GET, element: field)); |
| 3868 } | 3953 } |
| 3869 | 3954 |
| 3870 @override | 3955 @override |
| 3956 visitUnresolvedSuperGet( |
| 3957 Send node, |
| 3958 Element element, |
| 3959 arg) { |
| 3960 visits.add(new Visit(VisitKind.VISIT_UNRESOLVED_SUPER_GET)); |
| 3961 } |
| 3962 |
| 3963 @override |
| 3871 visitSuperFieldInvoke( | 3964 visitSuperFieldInvoke( |
| 3872 Send node, | 3965 Send node, |
| 3873 FieldElement field, | 3966 FieldElement field, |
| 3874 NodeList arguments, | 3967 NodeList arguments, |
| 3875 CallStructure callStructure, | 3968 CallStructure callStructure, |
| 3876 arg) { | 3969 arg) { |
| 3877 visits.add(new Visit(VisitKind.VISIT_SUPER_FIELD_INVOKE, | 3970 visits.add(new Visit(VisitKind.VISIT_SUPER_FIELD_INVOKE, |
| 3878 element: field, arguments: arguments)); | 3971 element: field, arguments: arguments)); |
| 3879 apply(arguments, arg); | 3972 apply(arguments, arg); |
| 3880 } | 3973 } |
| 3881 | 3974 |
| 3882 @override | 3975 @override |
| 3976 visitUnresolvedSuperInvoke( |
| 3977 Send node, |
| 3978 Element element, |
| 3979 NodeList arguments, |
| 3980 Selector selector, |
| 3981 arg) { |
| 3982 visits.add(new Visit(VisitKind.VISIT_UNRESOLVED_SUPER_INVOKE, |
| 3983 arguments: arguments)); |
| 3984 apply(arguments, arg); |
| 3985 } |
| 3986 |
| 3987 @override |
| 3883 visitSuperFieldSet( | 3988 visitSuperFieldSet( |
| 3884 SendSet node, | 3989 SendSet node, |
| 3885 FieldElement field, | 3990 FieldElement field, |
| 3886 Node rhs, | 3991 Node rhs, |
| 3887 arg) { | 3992 arg) { |
| 3888 visits.add(new Visit(VisitKind.VISIT_SUPER_FIELD_SET, | 3993 visits.add(new Visit(VisitKind.VISIT_SUPER_FIELD_SET, |
| 3889 element: field, rhs: rhs)); | 3994 element: field, rhs: rhs)); |
| 3890 apply(rhs, arg); | 3995 apply(rhs, arg); |
| 3891 } | 3996 } |
| 3892 | 3997 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3904 MethodElement method, | 4009 MethodElement method, |
| 3905 NodeList arguments, | 4010 NodeList arguments, |
| 3906 CallStructure callStructure, | 4011 CallStructure callStructure, |
| 3907 arg) { | 4012 arg) { |
| 3908 visits.add(new Visit(VisitKind.VISIT_SUPER_METHOD_INVOKE, | 4013 visits.add(new Visit(VisitKind.VISIT_SUPER_METHOD_INVOKE, |
| 3909 element: method, arguments: arguments)); | 4014 element: method, arguments: arguments)); |
| 3910 apply(arguments, arg); | 4015 apply(arguments, arg); |
| 3911 } | 4016 } |
| 3912 | 4017 |
| 3913 @override | 4018 @override |
| 4019 visitSuperMethodIncompatibleInvoke( |
| 4020 Send node, |
| 4021 MethodElement method, |
| 4022 NodeList arguments, |
| 4023 CallStructure callStructure, |
| 4024 arg) { |
| 4025 visits.add(new Visit(VisitKind.VISIT_SUPER_METHOD_INCOMPATIBLE_INVOKE, |
| 4026 element: method, arguments: arguments)); |
| 4027 apply(arguments, arg); |
| 4028 } |
| 4029 |
| 4030 @override |
| 3914 visitSuperGetterGet( | 4031 visitSuperGetterGet( |
| 3915 Send node, | 4032 Send node, |
| 3916 FunctionElement getter, | 4033 FunctionElement getter, |
| 3917 arg) { | 4034 arg) { |
| 3918 visits.add(new Visit(VisitKind.VISIT_SUPER_GETTER_GET, element: getter)); | 4035 visits.add(new Visit(VisitKind.VISIT_SUPER_GETTER_GET, element: getter)); |
| 3919 } | 4036 } |
| 3920 | 4037 |
| 3921 @override | 4038 @override |
| 3922 visitSuperGetterInvoke( | 4039 visitSuperGetterInvoke( |
| 3923 Send node, | 4040 Send node, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 3945 visitSuperUnary( | 4062 visitSuperUnary( |
| 3946 Send node, | 4063 Send node, |
| 3947 UnaryOperator operator, | 4064 UnaryOperator operator, |
| 3948 FunctionElement function, | 4065 FunctionElement function, |
| 3949 arg) { | 4066 arg) { |
| 3950 visits.add(new Visit(VisitKind.VISIT_SUPER_UNARY, | 4067 visits.add(new Visit(VisitKind.VISIT_SUPER_UNARY, |
| 3951 element: function, operator: operator)); | 4068 element: function, operator: operator)); |
| 3952 } | 4069 } |
| 3953 | 4070 |
| 3954 @override | 4071 @override |
| 4072 visitUnresolvedSuperUnary( |
| 4073 Send node, |
| 4074 UnaryOperator operator, |
| 4075 Element element, |
| 4076 arg) { |
| 4077 visits.add(new Visit(VisitKind.VISIT_UNRESOLVED_SUPER_UNARY, |
| 4078 operator: operator)); |
| 4079 } |
| 4080 |
| 4081 @override |
| 3955 visitEquals( | 4082 visitEquals( |
| 3956 Send node, | 4083 Send node, |
| 3957 Node left, | 4084 Node left, |
| 3958 Node right, | 4085 Node right, |
| 3959 arg) { | 4086 arg) { |
| 3960 visits.add(new Visit(VisitKind.VISIT_EQUALS, left: left, right: right)); | 4087 visits.add(new Visit(VisitKind.VISIT_EQUALS, left: left, right: right)); |
| 3961 apply(left, arg); | 4088 apply(left, arg); |
| 3962 apply(right, arg); | 4089 apply(right, arg); |
| 3963 } | 4090 } |
| 3964 | 4091 |
| (...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4996 @override | 5123 @override |
| 4997 errorUndefinedUnaryExpression( | 5124 errorUndefinedUnaryExpression( |
| 4998 Send node, | 5125 Send node, |
| 4999 Operator operator, | 5126 Operator operator, |
| 5000 Node expression, | 5127 Node expression, |
| 5001 arg) { | 5128 arg) { |
| 5002 // TODO: implement errorUndefinedUnaryExpression | 5129 // TODO: implement errorUndefinedUnaryExpression |
| 5003 } | 5130 } |
| 5004 | 5131 |
| 5005 @override | 5132 @override |
| 5006 errorUnresolvedSuperBinary( | |
| 5007 Send node, | |
| 5008 ErroneousElement element, | |
| 5009 BinaryOperator operator, | |
| 5010 Node argument, | |
| 5011 arg) { | |
| 5012 // TODO: implement errorUnresolvedSuperBinary | |
| 5013 } | |
| 5014 | |
| 5015 @override | |
| 5016 errorUnresolvedSuperCompoundIndexSet( | 5133 errorUnresolvedSuperCompoundIndexSet( |
| 5017 Send node, | 5134 Send node, |
| 5018 ErroneousElement element, | 5135 ErroneousElement element, |
| 5019 Node index, | 5136 Node index, |
| 5020 AssignmentOperator operator, | 5137 AssignmentOperator operator, |
| 5021 Node rhs, | 5138 Node rhs, |
| 5022 arg) { | 5139 arg) { |
| 5023 // TODO: implement errorUnresolvedSuperCompoundIndexSet | 5140 // TODO: implement errorUnresolvedSuperCompoundIndexSet |
| 5024 } | 5141 } |
| 5025 | 5142 |
| 5026 @override | 5143 @override |
| 5027 errorUnresolvedSuperIndexSet( | 5144 errorUnresolvedSuperIndexSet( |
| 5028 Send node, | 5145 Send node, |
| 5029 ErroneousElement element, | 5146 ErroneousElement element, |
| 5030 Node index, | 5147 Node index, |
| 5031 Node rhs, | 5148 Node rhs, |
| 5032 arg) { | 5149 arg) { |
| 5033 // TODO: implement errorUnresolvedSuperIndexSet | 5150 // TODO: implement errorUnresolvedSuperIndexSet |
| 5034 } | 5151 } |
| 5035 | 5152 |
| 5036 @override | 5153 @override |
| 5037 errorUnresolvedSuperUnary( | |
| 5038 Send node, | |
| 5039 UnaryOperator operator, | |
| 5040 ErroneousElement element, | |
| 5041 arg) { | |
| 5042 // TODO: implement errorUnresolvedSuperUnary | |
| 5043 } | |
| 5044 | |
| 5045 @override | |
| 5046 errorUnresolvedSuperIndex( | |
| 5047 Send node, | |
| 5048 Element element, | |
| 5049 Node index, | |
| 5050 arg) { | |
| 5051 // TODO: implement errorUnresolvedSuperIndex | |
| 5052 } | |
| 5053 | |
| 5054 @override | |
| 5055 errorUnresolvedSuperIndexPostfix( | 5154 errorUnresolvedSuperIndexPostfix( |
| 5056 Send node, | 5155 Send node, |
| 5057 Element function, | 5156 Element function, |
| 5058 Node index, | 5157 Node index, |
| 5059 IncDecOperator operator, | 5158 IncDecOperator operator, |
| 5060 arg) { | 5159 arg) { |
| 5061 // TODO: implement errorUnresolvedSuperIndexPostfix | 5160 // TODO: implement errorUnresolvedSuperIndexPostfix |
| 5062 } | 5161 } |
| 5063 | 5162 |
| 5064 @override | 5163 @override |
| (...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5993 VISIT_SUPER_FIELD_SETTER_COMPOUND, | 6092 VISIT_SUPER_FIELD_SETTER_COMPOUND, |
| 5994 VISIT_SUPER_GETTER_SETTER_PREFIX, | 6093 VISIT_SUPER_GETTER_SETTER_PREFIX, |
| 5995 VISIT_SUPER_GETTER_FIELD_PREFIX, | 6094 VISIT_SUPER_GETTER_FIELD_PREFIX, |
| 5996 VISIT_SUPER_FIELD_SETTER_PREFIX, | 6095 VISIT_SUPER_FIELD_SETTER_PREFIX, |
| 5997 VISIT_SUPER_GETTER_SETTER_POSTFIX, | 6096 VISIT_SUPER_GETTER_SETTER_POSTFIX, |
| 5998 VISIT_SUPER_GETTER_FIELD_POSTFIX, | 6097 VISIT_SUPER_GETTER_FIELD_POSTFIX, |
| 5999 VISIT_SUPER_FIELD_SETTER_POSTFIX, | 6098 VISIT_SUPER_FIELD_SETTER_POSTFIX, |
| 6000 | 6099 |
| 6001 VISIT_SUPER_METHOD_GET, | 6100 VISIT_SUPER_METHOD_GET, |
| 6002 VISIT_SUPER_METHOD_INVOKE, | 6101 VISIT_SUPER_METHOD_INVOKE, |
| 6102 VISIT_SUPER_METHOD_INCOMPATIBLE_INVOKE, |
| 6103 |
| 6104 VISIT_UNRESOLVED_SUPER_GET, |
| 6105 VISIT_UNRESOLVED_SUPER_INVOKE, |
| 6003 | 6106 |
| 6004 VISIT_BINARY, | 6107 VISIT_BINARY, |
| 6005 VISIT_INDEX, | 6108 VISIT_INDEX, |
| 6006 VISIT_EQUALS, | 6109 VISIT_EQUALS, |
| 6007 VISIT_NOT_EQUALS, | 6110 VISIT_NOT_EQUALS, |
| 6008 VISIT_INDEX_PREFIX, | 6111 VISIT_INDEX_PREFIX, |
| 6009 VISIT_INDEX_POSTFIX, | 6112 VISIT_INDEX_POSTFIX, |
| 6010 | 6113 |
| 6011 VISIT_SUPER_BINARY, | 6114 VISIT_SUPER_BINARY, |
| 6115 VISIT_UNRESOLVED_SUPER_BINARY, |
| 6012 VISIT_SUPER_INDEX, | 6116 VISIT_SUPER_INDEX, |
| 6117 VISIT_UNRESOLVED_SUPER_INDEX, |
| 6013 VISIT_SUPER_EQUALS, | 6118 VISIT_SUPER_EQUALS, |
| 6014 VISIT_SUPER_NOT_EQUALS, | 6119 VISIT_SUPER_NOT_EQUALS, |
| 6015 VISIT_SUPER_INDEX_PREFIX, | 6120 VISIT_SUPER_INDEX_PREFIX, |
| 6016 VISIT_SUPER_INDEX_POSTFIX, | 6121 VISIT_SUPER_INDEX_POSTFIX, |
| 6017 | 6122 |
| 6018 VISIT_UNARY, | 6123 VISIT_UNARY, |
| 6019 VISIT_SUPER_UNARY, | 6124 VISIT_SUPER_UNARY, |
| 6125 VISIT_UNRESOLVED_SUPER_UNARY, |
| 6020 VISIT_NOT, | 6126 VISIT_NOT, |
| 6021 | 6127 |
| 6022 VISIT_EXPRESSION_INVOKE, | 6128 VISIT_EXPRESSION_INVOKE, |
| 6023 | 6129 |
| 6024 VISIT_CLASS_TYPE_LITERAL_GET, | 6130 VISIT_CLASS_TYPE_LITERAL_GET, |
| 6025 VISIT_CLASS_TYPE_LITERAL_SET, | 6131 VISIT_CLASS_TYPE_LITERAL_SET, |
| 6026 VISIT_CLASS_TYPE_LITERAL_INVOKE, | 6132 VISIT_CLASS_TYPE_LITERAL_INVOKE, |
| 6027 VISIT_CLASS_TYPE_LITERAL_BINARY, | 6133 VISIT_CLASS_TYPE_LITERAL_BINARY, |
| 6028 ERROR_CLASS_TYPE_LITERAL_COMPOUND, | 6134 ERROR_CLASS_TYPE_LITERAL_COMPOUND, |
| 6029 ERROR_CLASS_TYPE_LITERAL_PREFIX, | 6135 ERROR_CLASS_TYPE_LITERAL_PREFIX, |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6097 VISIT_OPTIONAL_PARAMETER_DECL, | 6203 VISIT_OPTIONAL_PARAMETER_DECL, |
| 6098 VISIT_NAMED_PARAMETER_DECL, | 6204 VISIT_NAMED_PARAMETER_DECL, |
| 6099 VISIT_REQUIRED_INITIALIZING_FORMAL_DECL, | 6205 VISIT_REQUIRED_INITIALIZING_FORMAL_DECL, |
| 6100 VISIT_OPTIONAL_INITIALIZING_FORMAL_DECL, | 6206 VISIT_OPTIONAL_INITIALIZING_FORMAL_DECL, |
| 6101 VISIT_NAMED_INITIALIZING_FORMAL_DECL, | 6207 VISIT_NAMED_INITIALIZING_FORMAL_DECL, |
| 6102 | 6208 |
| 6103 ERROR_UNRESOLVED_POSTFIX, | 6209 ERROR_UNRESOLVED_POSTFIX, |
| 6104 | 6210 |
| 6105 // TODO(johnniwinther): Add tests for more error cases. | 6211 // TODO(johnniwinther): Add tests for more error cases. |
| 6106 } | 6212 } |
| OLD | NEW |