| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 const Visit(VisitKind.VISIT_PARAMETER_GET, | 168 const Visit(VisitKind.VISIT_PARAMETER_GET, |
| 169 element: 'parameter(m#o)')), | 169 element: 'parameter(m#o)')), |
| 170 const Test('m(o) { o = 42; }', | 170 const Test('m(o) { o = 42; }', |
| 171 const Visit(VisitKind.VISIT_PARAMETER_SET, | 171 const Visit(VisitKind.VISIT_PARAMETER_SET, |
| 172 element: 'parameter(m#o)', | 172 element: 'parameter(m#o)', |
| 173 rhs:'42')), | 173 rhs:'42')), |
| 174 const Test('m(o) { o(null, 42); }', | 174 const Test('m(o) { o(null, 42); }', |
| 175 const Visit(VisitKind.VISIT_PARAMETER_INVOKE, | 175 const Visit(VisitKind.VISIT_PARAMETER_INVOKE, |
| 176 element: 'parameter(m#o)', | 176 element: 'parameter(m#o)', |
| 177 arguments: '(null,42)', | 177 arguments: '(null,42)', |
| 178 selector: 'Selector(call, call, arity=2)')), | 178 selector: 'CallStructure(arity=2)')), |
| 179 ], | 179 ], |
| 180 'Local variables': const [ | 180 'Local variables': const [ |
| 181 // Local variables | 181 // Local variables |
| 182 const Test('m() { var o; return o; }', | 182 const Test('m() { var o; return o; }', |
| 183 const Visit(VisitKind.VISIT_LOCAL_VARIABLE_GET, | 183 const Visit(VisitKind.VISIT_LOCAL_VARIABLE_GET, |
| 184 element: 'variable(m#o)')), | 184 element: 'variable(m#o)')), |
| 185 const Test('m() { var o; o = 42; }', | 185 const Test('m() { var o; o = 42; }', |
| 186 const Visit(VisitKind.VISIT_LOCAL_VARIABLE_SET, | 186 const Visit(VisitKind.VISIT_LOCAL_VARIABLE_SET, |
| 187 element: 'variable(m#o)', | 187 element: 'variable(m#o)', |
| 188 rhs:'42')), | 188 rhs:'42')), |
| 189 const Test('m() { var o; o(null, 42); }', | 189 const Test('m() { var o; o(null, 42); }', |
| 190 const Visit(VisitKind.VISIT_LOCAL_VARIABLE_INVOKE, | 190 const Visit(VisitKind.VISIT_LOCAL_VARIABLE_INVOKE, |
| 191 element: 'variable(m#o)', | 191 element: 'variable(m#o)', |
| 192 arguments: '(null,42)', | 192 arguments: '(null,42)', |
| 193 selector: 'Selector(call, call, arity=2)')), | 193 selector: 'CallStructure(arity=2)')), |
| 194 ], | 194 ], |
| 195 'Local functions': const [ | 195 'Local functions': const [ |
| 196 // Local functions | 196 // Local functions |
| 197 const Test('m() { o(a, b) {}; return o; }', | 197 const Test('m() { o(a, b) {}; return o; }', |
| 198 const Visit(VisitKind.VISIT_LOCAL_FUNCTION_GET, | 198 const Visit(VisitKind.VISIT_LOCAL_FUNCTION_GET, |
| 199 element: 'function(m#o)')), | 199 element: 'function(m#o)')), |
| 200 const Test('m() { o(a, b) {}; o(null, 42); }', | 200 const Test('m() { o(a, b) {}; o(null, 42); }', |
| 201 const Visit(VisitKind.VISIT_LOCAL_FUNCTION_INVOKE, | 201 const Visit(VisitKind.VISIT_LOCAL_FUNCTION_INVOKE, |
| 202 element: 'function(m#o)', | 202 element: 'function(m#o)', |
| 203 arguments: '(null,42)', | 203 arguments: '(null,42)', |
| 204 selector: 'Selector(call, call, arity=2)')), | 204 selector: 'CallStructure(arity=2)')), |
| 205 ], | 205 ], |
| 206 'Static fields': const [ | 206 'Static fields': const [ |
| 207 // Static fields | 207 // Static fields |
| 208 const Test( | 208 const Test( |
| 209 ''' | 209 ''' |
| 210 class C { static var o; } | 210 class C { static var o; } |
| 211 m() => C.o; | 211 m() => C.o; |
| 212 ''', | 212 ''', |
| 213 const Visit(VisitKind.VISIT_STATIC_FIELD_GET, | 213 const Visit(VisitKind.VISIT_STATIC_FIELD_GET, |
| 214 element: 'field(C#o)')), | 214 element: 'field(C#o)')), |
| (...skipping 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2096 constant: 'const Class(true, 42)')), | 2096 constant: 'const Class(true, 42)')), |
| 2097 const Test( | 2097 const Test( |
| 2098 ''' | 2098 ''' |
| 2099 class Class {} | 2099 class Class {} |
| 2100 m() => new Class(); | 2100 m() => new Class(); |
| 2101 ''', | 2101 ''', |
| 2102 const Visit(VisitKind.VISIT_GENERATIVE_CONSTRUCTOR_INVOKE, | 2102 const Visit(VisitKind.VISIT_GENERATIVE_CONSTRUCTOR_INVOKE, |
| 2103 element: 'generative_constructor(Class#)', | 2103 element: 'generative_constructor(Class#)', |
| 2104 arguments: '()', | 2104 arguments: '()', |
| 2105 type: 'Class', | 2105 type: 'Class', |
| 2106 selector: 'Selector(call, , arity=0)')), | 2106 selector: 'CallStructure(arity=0)')), |
| 2107 const Test( | 2107 const Test( |
| 2108 ''' | 2108 ''' |
| 2109 class Class { | 2109 class Class { |
| 2110 Class(a, b); | 2110 Class(a, b); |
| 2111 } | 2111 } |
| 2112 m() => new Class(true, 42); | 2112 m() => new Class(true, 42); |
| 2113 ''', | 2113 ''', |
| 2114 const Visit(VisitKind.VISIT_GENERATIVE_CONSTRUCTOR_INVOKE, | 2114 const Visit(VisitKind.VISIT_GENERATIVE_CONSTRUCTOR_INVOKE, |
| 2115 element: 'generative_constructor(Class#)', | 2115 element: 'generative_constructor(Class#)', |
| 2116 arguments: '(true,42)', | 2116 arguments: '(true,42)', |
| 2117 type: 'Class', | 2117 type: 'Class', |
| 2118 selector: 'Selector(call, , arity=2)')), | 2118 selector: 'CallStructure(arity=2)')), |
| 2119 const Test( | 2119 const Test( |
| 2120 ''' | 2120 ''' |
| 2121 class Class { | 2121 class Class { |
| 2122 Class.named(a, b); | 2122 Class.named(a, b); |
| 2123 } | 2123 } |
| 2124 m() => new Class.named(true, 42); | 2124 m() => new Class.named(true, 42); |
| 2125 ''', | 2125 ''', |
| 2126 const Visit(VisitKind.VISIT_GENERATIVE_CONSTRUCTOR_INVOKE, | 2126 const Visit(VisitKind.VISIT_GENERATIVE_CONSTRUCTOR_INVOKE, |
| 2127 element: 'generative_constructor(Class#named)', | 2127 element: 'generative_constructor(Class#named)', |
| 2128 arguments: '(true,42)', | 2128 arguments: '(true,42)', |
| 2129 type: 'Class', | 2129 type: 'Class', |
| 2130 selector: 'Selector(call, named, arity=2)')), | 2130 selector: 'CallStructure(arity=2)')), |
| 2131 const Test( | 2131 const Test( |
| 2132 ''' | 2132 ''' |
| 2133 class Class { | 2133 class Class { |
| 2134 Class(a, b) : this._(a, b); | 2134 Class(a, b) : this._(a, b); |
| 2135 Class._(a, b); | 2135 Class._(a, b); |
| 2136 } | 2136 } |
| 2137 m() => new Class(true, 42); | 2137 m() => new Class(true, 42); |
| 2138 ''', | 2138 ''', |
| 2139 const Visit(VisitKind.VISIT_REDIRECTING_GENERATIVE_CONSTRUCTOR_INVOKE, | 2139 const Visit(VisitKind.VISIT_REDIRECTING_GENERATIVE_CONSTRUCTOR_INVOKE, |
| 2140 element: 'generative_constructor(Class#)', | 2140 element: 'generative_constructor(Class#)', |
| 2141 arguments: '(true,42)', | 2141 arguments: '(true,42)', |
| 2142 type: 'Class', | 2142 type: 'Class', |
| 2143 selector: 'Selector(call, , arity=2)')), | 2143 selector: 'CallStructure(arity=2)')), |
| 2144 const Test( | 2144 const Test( |
| 2145 ''' | 2145 ''' |
| 2146 class Class { | 2146 class Class { |
| 2147 factory Class(a, b) => new Class._(a, b); | 2147 factory Class(a, b) => new Class._(a, b); |
| 2148 Class._(a, b); | 2148 Class._(a, b); |
| 2149 } | 2149 } |
| 2150 m() => new Class(true, 42); | 2150 m() => new Class(true, 42); |
| 2151 ''', | 2151 ''', |
| 2152 const Visit(VisitKind.VISIT_FACTORY_CONSTRUCTOR_INVOKE, | 2152 const Visit(VisitKind.VISIT_FACTORY_CONSTRUCTOR_INVOKE, |
| 2153 element: 'function(Class#)', | 2153 element: 'function(Class#)', |
| 2154 arguments: '(true,42)', | 2154 arguments: '(true,42)', |
| 2155 type: 'Class', | 2155 type: 'Class', |
| 2156 selector: 'Selector(call, , arity=2)')), | 2156 selector: 'CallStructure(arity=2)')), |
| 2157 const Test( | 2157 const Test( |
| 2158 ''' | 2158 ''' |
| 2159 class Class<T> { | 2159 class Class<T> { |
| 2160 factory Class(a, b) = Class<int>.a; | 2160 factory Class(a, b) = Class<int>.a; |
| 2161 factory Class.a(a, b) = Class<Class<T>>.b; | 2161 factory Class.a(a, b) = Class<Class<T>>.b; |
| 2162 Class.b(a, b); | 2162 Class.b(a, b); |
| 2163 } | 2163 } |
| 2164 m() => new Class<double>(true, 42); | 2164 m() => new Class<double>(true, 42); |
| 2165 ''', | 2165 ''', |
| 2166 const Visit(VisitKind.VISIT_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE, | 2166 const Visit(VisitKind.VISIT_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE, |
| 2167 element: 'function(Class#)', | 2167 element: 'function(Class#)', |
| 2168 arguments: '(true,42)', | 2168 arguments: '(true,42)', |
| 2169 type: 'Class<double>', | 2169 type: 'Class<double>', |
| 2170 target: 'generative_constructor(Class#b)', | 2170 target: 'generative_constructor(Class#b)', |
| 2171 targetType: 'Class<Class<int>>', | 2171 targetType: 'Class<Class<int>>', |
| 2172 selector: 'Selector(call, , arity=2)')), | 2172 selector: 'CallStructure(arity=2)')), |
| 2173 const Test( | 2173 const Test( |
| 2174 ''' | 2174 ''' |
| 2175 class Class { | 2175 class Class { |
| 2176 Class(a, b); | 2176 Class(a, b); |
| 2177 } | 2177 } |
| 2178 m() => new Class.unresolved(true, 42); | 2178 m() => new Class.unresolved(true, 42); |
| 2179 ''', | 2179 ''', |
| 2180 const Visit( | 2180 const Visit( |
| 2181 VisitKind.ERROR_UNRESOLVED_CONSTRUCTOR_INVOKE, | 2181 VisitKind.ERROR_UNRESOLVED_CONSTRUCTOR_INVOKE, |
| 2182 arguments: '(true,42)')), | 2182 arguments: '(true,42)')), |
| 2183 const Test( | 2183 const Test( |
| 2184 ''' | 2184 ''' |
| 2185 m() => new Unresolved(true, 42); | 2185 m() => new Unresolved(true, 42); |
| 2186 ''', | 2186 ''', |
| 2187 const Visit( | 2187 const Visit( |
| 2188 // TODO(johnniwinther): Update this to | 2188 // TODO(johnniwinther): Update this to |
| 2189 // `VisitKind.ERROR_UNRESOLVED_CLASS_CONSTRUCTOR_INVOKE`. | 2189 // `VisitKind.ERROR_UNRESOLVED_CLASS_CONSTRUCTOR_INVOKE`. |
| 2190 VisitKind.ERROR_UNRESOLVED_CONSTRUCTOR_INVOKE, | 2190 VisitKind.ERROR_UNRESOLVED_CONSTRUCTOR_INVOKE, |
| 2191 arguments: '(true,42)')), | 2191 arguments: '(true,42)')), |
| 2192 const Test( | 2192 const Test( |
| 2193 ''' | 2193 ''' |
| 2194 abstract class AbstractClass {} | 2194 abstract class AbstractClass {} |
| 2195 m() => new AbstractClass(); | 2195 m() => new AbstractClass(); |
| 2196 ''', | 2196 ''', |
| 2197 const Visit( | 2197 const Visit( |
| 2198 VisitKind.ERROR_ABSTRACT_CLASS_CONSTRUCTOR_INVOKE, | 2198 VisitKind.ERROR_ABSTRACT_CLASS_CONSTRUCTOR_INVOKE, |
| 2199 element: 'generative_constructor(AbstractClass#)', | 2199 element: 'generative_constructor(AbstractClass#)', |
| 2200 type: 'AbstractClass', | 2200 type: 'AbstractClass', |
| 2201 arguments: '()', | 2201 arguments: '()', |
| 2202 selector: 'Selector(call, , arity=0)')), | 2202 selector: 'CallStructure(arity=0)')), |
| 2203 const Test( | 2203 const Test( |
| 2204 ''' | 2204 ''' |
| 2205 class Class { | 2205 class Class { |
| 2206 factory Class(a, b) = Unresolved; | 2206 factory Class(a, b) = Unresolved; |
| 2207 } | 2207 } |
| 2208 m() => new Class(true, 42); | 2208 m() => new Class(true, 42); |
| 2209 ''', | 2209 ''', |
| 2210 const Visit( | 2210 const Visit( |
| 2211 VisitKind.ERROR_UNRESOLVED_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE, | 2211 VisitKind.ERROR_UNRESOLVED_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE, |
| 2212 element: 'function(Class#)', | 2212 element: 'function(Class#)', |
| (...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3254 arg) { | 3254 arg) { |
| 3255 visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_GET, | 3255 visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_GET, |
| 3256 constant: constant.getText())); | 3256 constant: constant.getText())); |
| 3257 } | 3257 } |
| 3258 | 3258 |
| 3259 @override | 3259 @override |
| 3260 visitClassTypeLiteralInvoke( | 3260 visitClassTypeLiteralInvoke( |
| 3261 Send node, | 3261 Send node, |
| 3262 ConstantExpression constant, | 3262 ConstantExpression constant, |
| 3263 NodeList arguments, | 3263 NodeList arguments, |
| 3264 Selector selector, | 3264 CallStructure callStructure, |
| 3265 arg) { | 3265 arg) { |
| 3266 visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_INVOKE, | 3266 visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_INVOKE, |
| 3267 constant: constant.getText(), arguments: arguments)); | 3267 constant: constant.getText(), arguments: arguments)); |
| 3268 apply(arguments, arg); | 3268 apply(arguments, arg); |
| 3269 } | 3269 } |
| 3270 | 3270 |
| 3271 @override | 3271 @override |
| 3272 errorClassTypeLiteralSet( | 3272 errorClassTypeLiteralSet( |
| 3273 SendSet node, | 3273 SendSet node, |
| 3274 ConstantExpression constant, | 3274 ConstantExpression constant, |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3362 arg) { | 3362 arg) { |
| 3363 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_GET, | 3363 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_GET, |
| 3364 constant: constant.getText())); | 3364 constant: constant.getText())); |
| 3365 } | 3365 } |
| 3366 | 3366 |
| 3367 @override | 3367 @override |
| 3368 visitDynamicTypeLiteralInvoke( | 3368 visitDynamicTypeLiteralInvoke( |
| 3369 Send node, | 3369 Send node, |
| 3370 ConstantExpression constant, | 3370 ConstantExpression constant, |
| 3371 NodeList arguments, | 3371 NodeList arguments, |
| 3372 Selector selector, | 3372 CallStructure callStructure, |
| 3373 arg) { | 3373 arg) { |
| 3374 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_INVOKE, | 3374 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_INVOKE, |
| 3375 constant: constant.getText(), arguments: arguments)); | 3375 constant: constant.getText(), arguments: arguments)); |
| 3376 } | 3376 } |
| 3377 | 3377 |
| 3378 @override | 3378 @override |
| 3379 errorDynamicTypeLiteralSet( | 3379 errorDynamicTypeLiteralSet( |
| 3380 Send node, | 3380 Send node, |
| 3381 ConstantExpression constant, | 3381 ConstantExpression constant, |
| 3382 Node rhs, | 3382 Node rhs, |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3450 arg) { | 3450 arg) { |
| 3451 visits.add(new Visit(VisitKind.VISIT_LOCAL_FUNCTION_GET, | 3451 visits.add(new Visit(VisitKind.VISIT_LOCAL_FUNCTION_GET, |
| 3452 element: function)); | 3452 element: function)); |
| 3453 } | 3453 } |
| 3454 | 3454 |
| 3455 @override | 3455 @override |
| 3456 visitLocalFunctionInvoke( | 3456 visitLocalFunctionInvoke( |
| 3457 Send node, | 3457 Send node, |
| 3458 LocalFunctionElement function, | 3458 LocalFunctionElement function, |
| 3459 NodeList arguments, | 3459 NodeList arguments, |
| 3460 Selector selector, | 3460 CallStructure callStructure, |
| 3461 arg) { | 3461 arg) { |
| 3462 visits.add(new Visit(VisitKind.VISIT_LOCAL_FUNCTION_INVOKE, | 3462 visits.add(new Visit(VisitKind.VISIT_LOCAL_FUNCTION_INVOKE, |
| 3463 element: function, arguments: arguments, selector: selector)); | 3463 element: function, arguments: arguments, selector: callStructure)); |
| 3464 apply(arguments, arg); | 3464 apply(arguments, arg); |
| 3465 } | 3465 } |
| 3466 | 3466 |
| 3467 @override | 3467 @override |
| 3468 visitLocalVariableGet( | 3468 visitLocalVariableGet( |
| 3469 Send node, | 3469 Send node, |
| 3470 LocalVariableElement variable, | 3470 LocalVariableElement variable, |
| 3471 arg) { | 3471 arg) { |
| 3472 visits.add(new Visit(VisitKind.VISIT_LOCAL_VARIABLE_GET, | 3472 visits.add(new Visit(VisitKind.VISIT_LOCAL_VARIABLE_GET, |
| 3473 element: variable)); | 3473 element: variable)); |
| 3474 } | 3474 } |
| 3475 | 3475 |
| 3476 @override | 3476 @override |
| 3477 visitLocalVariableInvoke( | 3477 visitLocalVariableInvoke( |
| 3478 Send node, | 3478 Send node, |
| 3479 LocalVariableElement variable, | 3479 LocalVariableElement variable, |
| 3480 NodeList arguments, | 3480 NodeList arguments, |
| 3481 Selector selector, | 3481 CallStructure callStructure, |
| 3482 arg) { | 3482 arg) { |
| 3483 visits.add(new Visit(VisitKind.VISIT_LOCAL_VARIABLE_INVOKE, | 3483 visits.add(new Visit(VisitKind.VISIT_LOCAL_VARIABLE_INVOKE, |
| 3484 element: variable, arguments: arguments, selector: selector)); | 3484 element: variable, arguments: arguments, selector: callStructure)); |
| 3485 apply(arguments, arg); | 3485 apply(arguments, arg); |
| 3486 } | 3486 } |
| 3487 | 3487 |
| 3488 @override | 3488 @override |
| 3489 visitLocalVariableSet( | 3489 visitLocalVariableSet( |
| 3490 SendSet node, | 3490 SendSet node, |
| 3491 LocalVariableElement variable, | 3491 LocalVariableElement variable, |
| 3492 Node rhs, | 3492 Node rhs, |
| 3493 arg) { | 3493 arg) { |
| 3494 visits.add(new Visit(VisitKind.VISIT_LOCAL_VARIABLE_SET, | 3494 visits.add(new Visit(VisitKind.VISIT_LOCAL_VARIABLE_SET, |
| 3495 element: variable, rhs: rhs)); | 3495 element: variable, rhs: rhs)); |
| 3496 apply(rhs, arg); | 3496 apply(rhs, arg); |
| 3497 } | 3497 } |
| 3498 | 3498 |
| 3499 @override | 3499 @override |
| 3500 visitParameterGet( | 3500 visitParameterGet( |
| 3501 Send node, | 3501 Send node, |
| 3502 ParameterElement parameter, | 3502 ParameterElement parameter, |
| 3503 arg) { | 3503 arg) { |
| 3504 visits.add(new Visit(VisitKind.VISIT_PARAMETER_GET, element: parameter)); | 3504 visits.add(new Visit(VisitKind.VISIT_PARAMETER_GET, element: parameter)); |
| 3505 } | 3505 } |
| 3506 | 3506 |
| 3507 @override | 3507 @override |
| 3508 visitParameterInvoke( | 3508 visitParameterInvoke( |
| 3509 Send node, | 3509 Send node, |
| 3510 ParameterElement parameter, | 3510 ParameterElement parameter, |
| 3511 NodeList arguments, | 3511 NodeList arguments, |
| 3512 Selector selector, | 3512 CallStructure callStructure, |
| 3513 arg) { | 3513 arg) { |
| 3514 visits.add(new Visit(VisitKind.VISIT_PARAMETER_INVOKE, | 3514 visits.add(new Visit(VisitKind.VISIT_PARAMETER_INVOKE, |
| 3515 element: parameter, arguments: arguments, selector: selector)); | 3515 element: parameter, arguments: arguments, selector: callStructure)); |
| 3516 apply(arguments, arg); | 3516 apply(arguments, arg); |
| 3517 } | 3517 } |
| 3518 | 3518 |
| 3519 @override | 3519 @override |
| 3520 visitParameterSet( | 3520 visitParameterSet( |
| 3521 SendSet node, | 3521 SendSet node, |
| 3522 ParameterElement parameter, | 3522 ParameterElement parameter, |
| 3523 Node rhs, | 3523 Node rhs, |
| 3524 arg) { | 3524 arg) { |
| 3525 visits.add(new Visit(VisitKind.VISIT_PARAMETER_SET, | 3525 visits.add(new Visit(VisitKind.VISIT_PARAMETER_SET, |
| 3526 element: parameter, rhs: rhs)); | 3526 element: parameter, rhs: rhs)); |
| 3527 apply(rhs, arg); | 3527 apply(rhs, arg); |
| 3528 } | 3528 } |
| 3529 | 3529 |
| 3530 @override | 3530 @override |
| 3531 visitStaticFieldGet( | 3531 visitStaticFieldGet( |
| 3532 Send node, | 3532 Send node, |
| 3533 FieldElement field, | 3533 FieldElement field, |
| 3534 arg) { | 3534 arg) { |
| 3535 visits.add(new Visit(VisitKind.VISIT_STATIC_FIELD_GET, element: field)); | 3535 visits.add(new Visit(VisitKind.VISIT_STATIC_FIELD_GET, element: field)); |
| 3536 } | 3536 } |
| 3537 | 3537 |
| 3538 @override | 3538 @override |
| 3539 visitStaticFieldInvoke( | 3539 visitStaticFieldInvoke( |
| 3540 Send node, | 3540 Send node, |
| 3541 FieldElement field, | 3541 FieldElement field, |
| 3542 NodeList arguments, | 3542 NodeList arguments, |
| 3543 Selector selector, | 3543 CallStructure callStructure, |
| 3544 arg) { | 3544 arg) { |
| 3545 visits.add(new Visit(VisitKind.VISIT_STATIC_FIELD_INVOKE, | 3545 visits.add(new Visit(VisitKind.VISIT_STATIC_FIELD_INVOKE, |
| 3546 element: field, arguments: arguments)); | 3546 element: field, arguments: arguments)); |
| 3547 apply(arguments, arg); | 3547 apply(arguments, arg); |
| 3548 } | 3548 } |
| 3549 | 3549 |
| 3550 @override | 3550 @override |
| 3551 visitStaticFieldSet( | 3551 visitStaticFieldSet( |
| 3552 SendSet node, | 3552 SendSet node, |
| 3553 FieldElement field, | 3553 FieldElement field, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3565 arg) { | 3565 arg) { |
| 3566 visits.add(new Visit(VisitKind.VISIT_STATIC_FUNCTION_GET, | 3566 visits.add(new Visit(VisitKind.VISIT_STATIC_FUNCTION_GET, |
| 3567 element: function)); | 3567 element: function)); |
| 3568 } | 3568 } |
| 3569 | 3569 |
| 3570 @override | 3570 @override |
| 3571 visitStaticFunctionInvoke( | 3571 visitStaticFunctionInvoke( |
| 3572 Send node, | 3572 Send node, |
| 3573 MethodElement function, | 3573 MethodElement function, |
| 3574 NodeList arguments, | 3574 NodeList arguments, |
| 3575 Selector selector, | 3575 CallStructure callStructure, |
| 3576 arg) { | 3576 arg) { |
| 3577 visits.add(new Visit(VisitKind.VISIT_STATIC_FUNCTION_INVOKE, | 3577 visits.add(new Visit(VisitKind.VISIT_STATIC_FUNCTION_INVOKE, |
| 3578 element: function, arguments: arguments)); | 3578 element: function, arguments: arguments)); |
| 3579 apply(arguments, arg); | 3579 apply(arguments, arg); |
| 3580 } | 3580 } |
| 3581 | 3581 |
| 3582 @override | 3582 @override |
| 3583 visitStaticGetterGet( | 3583 visitStaticGetterGet( |
| 3584 Send node, | 3584 Send node, |
| 3585 FunctionElement getter, | 3585 FunctionElement getter, |
| 3586 arg) { | 3586 arg) { |
| 3587 visits.add(new Visit(VisitKind.VISIT_STATIC_GETTER_GET, | 3587 visits.add(new Visit(VisitKind.VISIT_STATIC_GETTER_GET, |
| 3588 element: getter)); | 3588 element: getter)); |
| 3589 } | 3589 } |
| 3590 | 3590 |
| 3591 @override | 3591 @override |
| 3592 visitStaticGetterInvoke( | 3592 visitStaticGetterInvoke( |
| 3593 Send node, | 3593 Send node, |
| 3594 FunctionElement getter, | 3594 FunctionElement getter, |
| 3595 NodeList arguments, | 3595 NodeList arguments, |
| 3596 Selector selector, | 3596 CallStructure callStructure, |
| 3597 arg) { | 3597 arg) { |
| 3598 visits.add(new Visit(VisitKind.VISIT_STATIC_GETTER_INVOKE, | 3598 visits.add(new Visit(VisitKind.VISIT_STATIC_GETTER_INVOKE, |
| 3599 element: getter, arguments: arguments)); | 3599 element: getter, arguments: arguments)); |
| 3600 apply(arguments, arg); | 3600 apply(arguments, arg); |
| 3601 } | 3601 } |
| 3602 | 3602 |
| 3603 @override | 3603 @override |
| 3604 visitStaticSetterSet( | 3604 visitStaticSetterSet( |
| 3605 SendSet node, | 3605 SendSet node, |
| 3606 FunctionElement setter, | 3606 FunctionElement setter, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3647 | 3647 |
| 3648 @override | 3648 @override |
| 3649 visitThisGet(Identifier node, arg) { | 3649 visitThisGet(Identifier node, arg) { |
| 3650 visits.add(new Visit(VisitKind.VISIT_THIS_GET)); | 3650 visits.add(new Visit(VisitKind.VISIT_THIS_GET)); |
| 3651 } | 3651 } |
| 3652 | 3652 |
| 3653 @override | 3653 @override |
| 3654 visitThisInvoke( | 3654 visitThisInvoke( |
| 3655 Send node, | 3655 Send node, |
| 3656 NodeList arguments, | 3656 NodeList arguments, |
| 3657 Selector selector, | 3657 CallStructure callStructure, |
| 3658 arg) { | 3658 arg) { |
| 3659 visits.add(new Visit(VisitKind.VISIT_THIS_INVOKE, arguments: arguments)); | 3659 visits.add(new Visit(VisitKind.VISIT_THIS_INVOKE, arguments: arguments)); |
| 3660 apply(arguments, arg); | 3660 apply(arguments, arg); |
| 3661 } | 3661 } |
| 3662 | 3662 |
| 3663 @override | 3663 @override |
| 3664 visitThisPropertyGet( | 3664 visitThisPropertyGet( |
| 3665 Send node, | 3665 Send node, |
| 3666 Selector selector, | 3666 Selector selector, |
| 3667 arg) { | 3667 arg) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 3697 FieldElement field, | 3697 FieldElement field, |
| 3698 arg) { | 3698 arg) { |
| 3699 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_FIELD_GET, element: field)); | 3699 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_FIELD_GET, element: field)); |
| 3700 } | 3700 } |
| 3701 | 3701 |
| 3702 @override | 3702 @override |
| 3703 visitTopLevelFieldInvoke( | 3703 visitTopLevelFieldInvoke( |
| 3704 Send node, | 3704 Send node, |
| 3705 FieldElement field, | 3705 FieldElement field, |
| 3706 NodeList arguments, | 3706 NodeList arguments, |
| 3707 Selector selector, | 3707 CallStructure callStructure, |
| 3708 arg) { | 3708 arg) { |
| 3709 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_FIELD_INVOKE, | 3709 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_FIELD_INVOKE, |
| 3710 element: field, arguments: arguments)); | 3710 element: field, arguments: arguments)); |
| 3711 apply(arguments, arg); | 3711 apply(arguments, arg); |
| 3712 } | 3712 } |
| 3713 | 3713 |
| 3714 @override | 3714 @override |
| 3715 visitTopLevelFieldSet( | 3715 visitTopLevelFieldSet( |
| 3716 SendSet node, | 3716 SendSet node, |
| 3717 FieldElement field, | 3717 FieldElement field, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3729 arg) { | 3729 arg) { |
| 3730 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_FUNCTION_GET, | 3730 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_FUNCTION_GET, |
| 3731 element: function)); | 3731 element: function)); |
| 3732 } | 3732 } |
| 3733 | 3733 |
| 3734 @override | 3734 @override |
| 3735 visitTopLevelFunctionInvoke( | 3735 visitTopLevelFunctionInvoke( |
| 3736 Send node, | 3736 Send node, |
| 3737 MethodElement function, | 3737 MethodElement function, |
| 3738 NodeList arguments, | 3738 NodeList arguments, |
| 3739 Selector selector, | 3739 CallStructure callStructure, |
| 3740 arg) { | 3740 arg) { |
| 3741 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_FUNCTION_INVOKE, | 3741 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_FUNCTION_INVOKE, |
| 3742 element: function, arguments: arguments)); | 3742 element: function, arguments: arguments)); |
| 3743 apply(arguments, arg); | 3743 apply(arguments, arg); |
| 3744 } | 3744 } |
| 3745 | 3745 |
| 3746 @override | 3746 @override |
| 3747 visitTopLevelGetterGet( | 3747 visitTopLevelGetterGet( |
| 3748 Send node, | 3748 Send node, |
| 3749 FunctionElement getter, | 3749 FunctionElement getter, |
| 3750 arg) { | 3750 arg) { |
| 3751 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_GETTER_GET, | 3751 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_GETTER_GET, |
| 3752 element: getter)); | 3752 element: getter)); |
| 3753 } | 3753 } |
| 3754 | 3754 |
| 3755 @override | 3755 @override |
| 3756 visitTopLevelGetterInvoke( | 3756 visitTopLevelGetterInvoke( |
| 3757 Send node, | 3757 Send node, |
| 3758 FunctionElement getter, | 3758 FunctionElement getter, |
| 3759 NodeList arguments, | 3759 NodeList arguments, |
| 3760 Selector selector, | 3760 CallStructure callStructure, |
| 3761 arg) { | 3761 arg) { |
| 3762 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_GETTER_INVOKE, | 3762 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_GETTER_INVOKE, |
| 3763 element: getter, arguments: arguments)); | 3763 element: getter, arguments: arguments)); |
| 3764 apply(arguments, arg); | 3764 apply(arguments, arg); |
| 3765 } | 3765 } |
| 3766 | 3766 |
| 3767 @override | 3767 @override |
| 3768 visitTopLevelSetterSet( | 3768 visitTopLevelSetterSet( |
| 3769 SendSet node, | 3769 SendSet node, |
| 3770 FunctionElement setter, | 3770 FunctionElement setter, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3782 arg) { | 3782 arg) { |
| 3783 visits.add(new Visit(VisitKind.VISIT_TYPE_VARIABLE_TYPE_LITERAL_GET, | 3783 visits.add(new Visit(VisitKind.VISIT_TYPE_VARIABLE_TYPE_LITERAL_GET, |
| 3784 element: element)); | 3784 element: element)); |
| 3785 } | 3785 } |
| 3786 | 3786 |
| 3787 @override | 3787 @override |
| 3788 visitTypeVariableTypeLiteralInvoke( | 3788 visitTypeVariableTypeLiteralInvoke( |
| 3789 Send node, | 3789 Send node, |
| 3790 TypeVariableElement element, | 3790 TypeVariableElement element, |
| 3791 NodeList arguments, | 3791 NodeList arguments, |
| 3792 Selector selector, | 3792 CallStructure callStructure, |
| 3793 arg) { | 3793 arg) { |
| 3794 visits.add(new Visit(VisitKind.VISIT_TYPE_VARIABLE_TYPE_LITERAL_INVOKE, | 3794 visits.add(new Visit(VisitKind.VISIT_TYPE_VARIABLE_TYPE_LITERAL_INVOKE, |
| 3795 element: element, arguments: arguments)); | 3795 element: element, arguments: arguments)); |
| 3796 apply(arguments, arg); | 3796 apply(arguments, arg); |
| 3797 } | 3797 } |
| 3798 | 3798 |
| 3799 @override | 3799 @override |
| 3800 errorTypeVariableTypeLiteralSet( | 3800 errorTypeVariableTypeLiteralSet( |
| 3801 SendSet node, | 3801 SendSet node, |
| 3802 TypeVariableElement element, | 3802 TypeVariableElement element, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3814 arg) { | 3814 arg) { |
| 3815 visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_GET, | 3815 visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_GET, |
| 3816 constant: constant.getText())); | 3816 constant: constant.getText())); |
| 3817 } | 3817 } |
| 3818 | 3818 |
| 3819 @override | 3819 @override |
| 3820 visitTypedefTypeLiteralInvoke( | 3820 visitTypedefTypeLiteralInvoke( |
| 3821 Send node, | 3821 Send node, |
| 3822 ConstantExpression constant, | 3822 ConstantExpression constant, |
| 3823 NodeList arguments, | 3823 NodeList arguments, |
| 3824 Selector selector, | 3824 CallStructure callStructure, |
| 3825 arg) { | 3825 arg) { |
| 3826 visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_INVOKE, | 3826 visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_INVOKE, |
| 3827 constant: constant.getText(), arguments: arguments)); | 3827 constant: constant.getText(), arguments: arguments)); |
| 3828 apply(arguments, arg); | 3828 apply(arguments, arg); |
| 3829 } | 3829 } |
| 3830 | 3830 |
| 3831 @override | 3831 @override |
| 3832 errorTypedefTypeLiteralSet( | 3832 errorTypedefTypeLiteralSet( |
| 3833 SendSet node, | 3833 SendSet node, |
| 3834 ConstantExpression constant, | 3834 ConstantExpression constant, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 3865 FieldElement field, | 3865 FieldElement field, |
| 3866 arg) { | 3866 arg) { |
| 3867 visits.add(new Visit(VisitKind.VISIT_SUPER_FIELD_GET, element: field)); | 3867 visits.add(new Visit(VisitKind.VISIT_SUPER_FIELD_GET, element: field)); |
| 3868 } | 3868 } |
| 3869 | 3869 |
| 3870 @override | 3870 @override |
| 3871 visitSuperFieldInvoke( | 3871 visitSuperFieldInvoke( |
| 3872 Send node, | 3872 Send node, |
| 3873 FieldElement field, | 3873 FieldElement field, |
| 3874 NodeList arguments, | 3874 NodeList arguments, |
| 3875 Selector selector, | 3875 CallStructure callStructure, |
| 3876 arg) { | 3876 arg) { |
| 3877 visits.add(new Visit(VisitKind.VISIT_SUPER_FIELD_INVOKE, | 3877 visits.add(new Visit(VisitKind.VISIT_SUPER_FIELD_INVOKE, |
| 3878 element: field, arguments: arguments)); | 3878 element: field, arguments: arguments)); |
| 3879 apply(arguments, arg); | 3879 apply(arguments, arg); |
| 3880 } | 3880 } |
| 3881 | 3881 |
| 3882 @override | 3882 @override |
| 3883 visitSuperFieldSet( | 3883 visitSuperFieldSet( |
| 3884 SendSet node, | 3884 SendSet node, |
| 3885 FieldElement field, | 3885 FieldElement field, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3896 MethodElement method, | 3896 MethodElement method, |
| 3897 arg) { | 3897 arg) { |
| 3898 visits.add(new Visit(VisitKind.VISIT_SUPER_METHOD_GET, element: method)); | 3898 visits.add(new Visit(VisitKind.VISIT_SUPER_METHOD_GET, element: method)); |
| 3899 } | 3899 } |
| 3900 | 3900 |
| 3901 @override | 3901 @override |
| 3902 visitSuperMethodInvoke( | 3902 visitSuperMethodInvoke( |
| 3903 Send node, | 3903 Send node, |
| 3904 MethodElement method, | 3904 MethodElement method, |
| 3905 NodeList arguments, | 3905 NodeList arguments, |
| 3906 Selector selector, | 3906 CallStructure callStructure, |
| 3907 arg) { | 3907 arg) { |
| 3908 visits.add(new Visit(VisitKind.VISIT_SUPER_METHOD_INVOKE, | 3908 visits.add(new Visit(VisitKind.VISIT_SUPER_METHOD_INVOKE, |
| 3909 element: method, arguments: arguments)); | 3909 element: method, arguments: arguments)); |
| 3910 apply(arguments, arg); | 3910 apply(arguments, arg); |
| 3911 } | 3911 } |
| 3912 | 3912 |
| 3913 @override | 3913 @override |
| 3914 visitSuperGetterGet( | 3914 visitSuperGetterGet( |
| 3915 Send node, | 3915 Send node, |
| 3916 FunctionElement getter, | 3916 FunctionElement getter, |
| 3917 arg) { | 3917 arg) { |
| 3918 visits.add(new Visit(VisitKind.VISIT_SUPER_GETTER_GET, element: getter)); | 3918 visits.add(new Visit(VisitKind.VISIT_SUPER_GETTER_GET, element: getter)); |
| 3919 } | 3919 } |
| 3920 | 3920 |
| 3921 @override | 3921 @override |
| 3922 visitSuperGetterInvoke( | 3922 visitSuperGetterInvoke( |
| 3923 Send node, | 3923 Send node, |
| 3924 FunctionElement getter, | 3924 FunctionElement getter, |
| 3925 NodeList arguments, | 3925 NodeList arguments, |
| 3926 Selector selector, | 3926 CallStructure callStructure, |
| 3927 arg) { | 3927 arg) { |
| 3928 visits.add(new Visit(VisitKind.VISIT_SUPER_GETTER_INVOKE, | 3928 visits.add(new Visit(VisitKind.VISIT_SUPER_GETTER_INVOKE, |
| 3929 element: getter, arguments: arguments)); | 3929 element: getter, arguments: arguments)); |
| 3930 apply(arguments, arg); | 3930 apply(arguments, arg); |
| 3931 } | 3931 } |
| 3932 | 3932 |
| 3933 @override | 3933 @override |
| 3934 visitSuperSetterSet( | 3934 visitSuperSetterSet( |
| 3935 SendSet node, | 3935 SendSet node, |
| 3936 FunctionElement setter, | 3936 FunctionElement setter, |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4078 FunctionElement setter, | 4078 FunctionElement setter, |
| 4079 arg) { | 4079 arg) { |
| 4080 // TODO: implement errorStaticSetterGet | 4080 // TODO: implement errorStaticSetterGet |
| 4081 } | 4081 } |
| 4082 | 4082 |
| 4083 @override | 4083 @override |
| 4084 errorStaticSetterInvoke( | 4084 errorStaticSetterInvoke( |
| 4085 Send node, | 4085 Send node, |
| 4086 FunctionElement setter, | 4086 FunctionElement setter, |
| 4087 NodeList arguments, | 4087 NodeList arguments, |
| 4088 Selector selector, | 4088 CallStructure callStructure, |
| 4089 arg) { | 4089 arg) { |
| 4090 // TODO: implement errorStaticSetterInvoke | 4090 // TODO: implement errorStaticSetterInvoke |
| 4091 } | 4091 } |
| 4092 | 4092 |
| 4093 @override | 4093 @override |
| 4094 errorSuperGetterSet( | 4094 errorSuperGetterSet( |
| 4095 SendSet node, | 4095 SendSet node, |
| 4096 FunctionElement getter, | 4096 FunctionElement getter, |
| 4097 Node rhs, | 4097 Node rhs, |
| 4098 arg) { | 4098 arg) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 4114 FunctionElement setter, | 4114 FunctionElement setter, |
| 4115 arg) { | 4115 arg) { |
| 4116 // TODO: implement errorSuperSetterGet | 4116 // TODO: implement errorSuperSetterGet |
| 4117 } | 4117 } |
| 4118 | 4118 |
| 4119 @override | 4119 @override |
| 4120 errorSuperSetterInvoke( | 4120 errorSuperSetterInvoke( |
| 4121 Send node, | 4121 Send node, |
| 4122 FunctionElement setter, | 4122 FunctionElement setter, |
| 4123 NodeList arguments, | 4123 NodeList arguments, |
| 4124 Selector selector, | 4124 CallStructure callStructure, |
| 4125 arg) { | 4125 arg) { |
| 4126 // TODO: implement errorSuperSetterInvoke | 4126 // TODO: implement errorSuperSetterInvoke |
| 4127 } | 4127 } |
| 4128 | 4128 |
| 4129 @override | 4129 @override |
| 4130 errorTopLevelFunctionSet( | 4130 errorTopLevelFunctionSet( |
| 4131 Send node, | 4131 Send node, |
| 4132 MethodElement function, | 4132 MethodElement function, |
| 4133 Node rhs, | 4133 Node rhs, |
| 4134 arg) { | 4134 arg) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 4150 FunctionElement setter, | 4150 FunctionElement setter, |
| 4151 arg) { | 4151 arg) { |
| 4152 // TODO: implement errorTopLevelSetterGet | 4152 // TODO: implement errorTopLevelSetterGet |
| 4153 } | 4153 } |
| 4154 | 4154 |
| 4155 @override | 4155 @override |
| 4156 errorTopLevelSetterInvoke( | 4156 errorTopLevelSetterInvoke( |
| 4157 Send node, | 4157 Send node, |
| 4158 FunctionElement setter, | 4158 FunctionElement setter, |
| 4159 NodeList arguments, | 4159 NodeList arguments, |
| 4160 Selector selector, | 4160 CallStructure callStructure, |
| 4161 arg) { | 4161 arg) { |
| 4162 // TODO: implement errorTopLevelSetterInvoke | 4162 // TODO: implement errorTopLevelSetterInvoke |
| 4163 } | 4163 } |
| 4164 | 4164 |
| 4165 @override | 4165 @override |
| 4166 visitDynamicPropertyCompound( | 4166 visitDynamicPropertyCompound( |
| 4167 Send node, | 4167 Send node, |
| 4168 Node receiver, | 4168 Node receiver, |
| 4169 AssignmentOperator operator, | 4169 AssignmentOperator operator, |
| 4170 Node rhs, | 4170 Node rhs, |
| (...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4915 ConstantExpression constant, | 4915 ConstantExpression constant, |
| 4916 arg) { | 4916 arg) { |
| 4917 // TODO: implement visitConstantGet | 4917 // TODO: implement visitConstantGet |
| 4918 } | 4918 } |
| 4919 | 4919 |
| 4920 @override | 4920 @override |
| 4921 visitConstantInvoke( | 4921 visitConstantInvoke( |
| 4922 Send node, | 4922 Send node, |
| 4923 ConstantExpression constant, | 4923 ConstantExpression constant, |
| 4924 NodeList arguments, | 4924 NodeList arguments, |
| 4925 Selector selector, | 4925 CallStructure callStructure, |
| 4926 arg) { | 4926 arg) { |
| 4927 // TODO: implement visitConstantInvoke | 4927 // TODO: implement visitConstantInvoke |
| 4928 } | 4928 } |
| 4929 | 4929 |
| 4930 @override | 4930 @override |
| 4931 errorUnresolvedCompound( | 4931 errorUnresolvedCompound( |
| 4932 Send node, | 4932 Send node, |
| 4933 ErroneousElement element, | 4933 ErroneousElement element, |
| 4934 AssignmentOperator operator, | 4934 AssignmentOperator operator, |
| 4935 Node rhs, | 4935 Node rhs, |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5163 visits.add(new Visit(VisitKind.VISIT_CONST_CONSTRUCTOR_INVOKE, | 5163 visits.add(new Visit(VisitKind.VISIT_CONST_CONSTRUCTOR_INVOKE, |
| 5164 constant: constant.getText())); | 5164 constant: constant.getText())); |
| 5165 } | 5165 } |
| 5166 | 5166 |
| 5167 @override | 5167 @override |
| 5168 visitFactoryConstructorInvoke( | 5168 visitFactoryConstructorInvoke( |
| 5169 NewExpression node, | 5169 NewExpression node, |
| 5170 ConstructorElement constructor, | 5170 ConstructorElement constructor, |
| 5171 InterfaceType type, | 5171 InterfaceType type, |
| 5172 NodeList arguments, | 5172 NodeList arguments, |
| 5173 Selector selector, | 5173 CallStructure callStructure, |
| 5174 arg) { | 5174 arg) { |
| 5175 visits.add(new Visit( | 5175 visits.add(new Visit( |
| 5176 VisitKind.VISIT_FACTORY_CONSTRUCTOR_INVOKE, | 5176 VisitKind.VISIT_FACTORY_CONSTRUCTOR_INVOKE, |
| 5177 element: constructor, | 5177 element: constructor, |
| 5178 type: type, | 5178 type: type, |
| 5179 arguments: arguments, | 5179 arguments: arguments, |
| 5180 selector: selector)); | 5180 selector: callStructure)); |
| 5181 apply(arguments, arg); | 5181 apply(arguments, arg); |
| 5182 } | 5182 } |
| 5183 | 5183 |
| 5184 @override | 5184 @override |
| 5185 visitGenerativeConstructorInvoke( | 5185 visitGenerativeConstructorInvoke( |
| 5186 NewExpression node, | 5186 NewExpression node, |
| 5187 ConstructorElement constructor, | 5187 ConstructorElement constructor, |
| 5188 InterfaceType type, | 5188 InterfaceType type, |
| 5189 NodeList arguments, | 5189 NodeList arguments, |
| 5190 Selector selector, | 5190 CallStructure callStructure, |
| 5191 arg) { | 5191 arg) { |
| 5192 visits.add(new Visit( | 5192 visits.add(new Visit( |
| 5193 VisitKind.VISIT_GENERATIVE_CONSTRUCTOR_INVOKE, | 5193 VisitKind.VISIT_GENERATIVE_CONSTRUCTOR_INVOKE, |
| 5194 element: constructor, | 5194 element: constructor, |
| 5195 type: type, | 5195 type: type, |
| 5196 arguments: arguments, | 5196 arguments: arguments, |
| 5197 selector: selector)); | 5197 selector: callStructure)); |
| 5198 apply(arguments, arg); | 5198 apply(arguments, arg); |
| 5199 } | 5199 } |
| 5200 | 5200 |
| 5201 @override | 5201 @override |
| 5202 visitRedirectingFactoryConstructorInvoke( | 5202 visitRedirectingFactoryConstructorInvoke( |
| 5203 NewExpression node, | 5203 NewExpression node, |
| 5204 ConstructorElement constructor, | 5204 ConstructorElement constructor, |
| 5205 InterfaceType type, | 5205 InterfaceType type, |
| 5206 ConstructorElement effectiveTarget, | 5206 ConstructorElement effectiveTarget, |
| 5207 InterfaceType effectiveTargetType, | 5207 InterfaceType effectiveTargetType, |
| 5208 NodeList arguments, | 5208 NodeList arguments, |
| 5209 Selector selector, | 5209 CallStructure callStructure, |
| 5210 arg) { | 5210 arg) { |
| 5211 visits.add(new Visit( | 5211 visits.add(new Visit( |
| 5212 VisitKind.VISIT_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE, | 5212 VisitKind.VISIT_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE, |
| 5213 element: constructor, | 5213 element: constructor, |
| 5214 type: type, | 5214 type: type, |
| 5215 target: effectiveTarget, | 5215 target: effectiveTarget, |
| 5216 targetType: effectiveTargetType, | 5216 targetType: effectiveTargetType, |
| 5217 arguments: arguments, | 5217 arguments: arguments, |
| 5218 selector: selector)); | 5218 selector: callStructure)); |
| 5219 apply(arguments, arg); | 5219 apply(arguments, arg); |
| 5220 } | 5220 } |
| 5221 | 5221 |
| 5222 @override | 5222 @override |
| 5223 visitRedirectingGenerativeConstructorInvoke( | 5223 visitRedirectingGenerativeConstructorInvoke( |
| 5224 NewExpression node, | 5224 NewExpression node, |
| 5225 ConstructorElement constructor, | 5225 ConstructorElement constructor, |
| 5226 InterfaceType type, | 5226 InterfaceType type, |
| 5227 NodeList arguments, | 5227 NodeList arguments, |
| 5228 Selector selector, | 5228 CallStructure callStructure, |
| 5229 arg) { | 5229 arg) { |
| 5230 visits.add(new Visit( | 5230 visits.add(new Visit( |
| 5231 VisitKind.VISIT_REDIRECTING_GENERATIVE_CONSTRUCTOR_INVOKE, | 5231 VisitKind.VISIT_REDIRECTING_GENERATIVE_CONSTRUCTOR_INVOKE, |
| 5232 element: constructor, | 5232 element: constructor, |
| 5233 type: type, | 5233 type: type, |
| 5234 arguments: arguments, | 5234 arguments: arguments, |
| 5235 selector: selector)); | 5235 selector: callStructure)); |
| 5236 apply(arguments, arg); | 5236 apply(arguments, arg); |
| 5237 } | 5237 } |
| 5238 | 5238 |
| 5239 @override | 5239 @override |
| 5240 errorAbstractClassConstructorInvoke( | 5240 errorAbstractClassConstructorInvoke( |
| 5241 NewExpression node, | 5241 NewExpression node, |
| 5242 ConstructorElement constructor, | 5242 ConstructorElement constructor, |
| 5243 InterfaceType type, | 5243 InterfaceType type, |
| 5244 NodeList arguments, | 5244 NodeList arguments, |
| 5245 Selector selector, | 5245 CallStructure callStructure, |
| 5246 arg) { | 5246 arg) { |
| 5247 visits.add(new Visit( | 5247 visits.add(new Visit( |
| 5248 VisitKind.ERROR_ABSTRACT_CLASS_CONSTRUCTOR_INVOKE, | 5248 VisitKind.ERROR_ABSTRACT_CLASS_CONSTRUCTOR_INVOKE, |
| 5249 element: constructor, | 5249 element: constructor, |
| 5250 type: type, | 5250 type: type, |
| 5251 arguments: arguments, | 5251 arguments: arguments, |
| 5252 selector: selector)); | 5252 selector: callStructure)); |
| 5253 apply(arguments, arg); | 5253 apply(arguments, arg); |
| 5254 } | 5254 } |
| 5255 | 5255 |
| 5256 @override | 5256 @override |
| 5257 errorUnresolvedRedirectingFactoryConstructorInvoke( | 5257 errorUnresolvedRedirectingFactoryConstructorInvoke( |
| 5258 NewExpression node, | 5258 NewExpression node, |
| 5259 ConstructorElement constructor, | 5259 ConstructorElement constructor, |
| 5260 InterfaceType type, | 5260 InterfaceType type, |
| 5261 NodeList arguments, | 5261 NodeList arguments, |
| 5262 Selector selector, | 5262 Selector selector, |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5786 visits.add(new Visit(VisitKind.VISIT_CONST_CONSTRUCTOR_INVOKE, | 5786 visits.add(new Visit(VisitKind.VISIT_CONST_CONSTRUCTOR_INVOKE, |
| 5787 constant: constant.getText())); | 5787 constant: constant.getText())); |
| 5788 } | 5788 } |
| 5789 | 5789 |
| 5790 @override | 5790 @override |
| 5791 visitFactoryConstructorInvoke( | 5791 visitFactoryConstructorInvoke( |
| 5792 NewExpression node, | 5792 NewExpression node, |
| 5793 ConstructorElement constructor, | 5793 ConstructorElement constructor, |
| 5794 InterfaceType type, | 5794 InterfaceType type, |
| 5795 NodeList arguments, | 5795 NodeList arguments, |
| 5796 Selector selector, | 5796 CallStructure callStructure, |
| 5797 arg) { | 5797 arg) { |
| 5798 visits.add(new Visit( | 5798 visits.add(new Visit( |
| 5799 VisitKind.VISIT_FACTORY_CONSTRUCTOR_INVOKE, | 5799 VisitKind.VISIT_FACTORY_CONSTRUCTOR_INVOKE, |
| 5800 element: constructor, | 5800 element: constructor, |
| 5801 type: type, | 5801 type: type, |
| 5802 arguments: arguments, | 5802 arguments: arguments, |
| 5803 selector: selector)); | 5803 selector: callStructure)); |
| 5804 apply(arguments, arg); | 5804 apply(arguments, arg); |
| 5805 } | 5805 } |
| 5806 | 5806 |
| 5807 @override | 5807 @override |
| 5808 visitGenerativeConstructorInvoke( | 5808 visitGenerativeConstructorInvoke( |
| 5809 NewExpression node, | 5809 NewExpression node, |
| 5810 ConstructorElement constructor, | 5810 ConstructorElement constructor, |
| 5811 InterfaceType type, | 5811 InterfaceType type, |
| 5812 NodeList arguments, | 5812 NodeList arguments, |
| 5813 Selector selector, | 5813 CallStructure callStructure, |
| 5814 arg) { | 5814 arg) { |
| 5815 visits.add(new Visit( | 5815 visits.add(new Visit( |
| 5816 VisitKind.VISIT_GENERATIVE_CONSTRUCTOR_INVOKE, | 5816 VisitKind.VISIT_GENERATIVE_CONSTRUCTOR_INVOKE, |
| 5817 element: constructor, | 5817 element: constructor, |
| 5818 type: type, | 5818 type: type, |
| 5819 arguments: arguments, | 5819 arguments: arguments, |
| 5820 selector: selector)); | 5820 selector: callStructure)); |
| 5821 apply(arguments, arg); | 5821 apply(arguments, arg); |
| 5822 } | 5822 } |
| 5823 | 5823 |
| 5824 @override | 5824 @override |
| 5825 visitRedirectingFactoryConstructorInvoke( | 5825 visitRedirectingFactoryConstructorInvoke( |
| 5826 NewExpression node, | 5826 NewExpression node, |
| 5827 ConstructorElement constructor, | 5827 ConstructorElement constructor, |
| 5828 InterfaceType type, | 5828 InterfaceType type, |
| 5829 ConstructorElement effectiveTarget, | 5829 ConstructorElement effectiveTarget, |
| 5830 InterfaceType effectiveTargetType, | 5830 InterfaceType effectiveTargetType, |
| 5831 NodeList arguments, | 5831 NodeList arguments, |
| 5832 Selector selector, | 5832 CallStructure callStructure, |
| 5833 arg) { | 5833 arg) { |
| 5834 visits.add(new Visit( | 5834 visits.add(new Visit( |
| 5835 VisitKind.VISIT_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE, | 5835 VisitKind.VISIT_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE, |
| 5836 element: constructor, | 5836 element: constructor, |
| 5837 type: type, | 5837 type: type, |
| 5838 target: effectiveTarget, | 5838 target: effectiveTarget, |
| 5839 targetType: effectiveTargetType, | 5839 targetType: effectiveTargetType, |
| 5840 arguments: arguments, | 5840 arguments: arguments, |
| 5841 selector: selector)); | 5841 selector: callStructure)); |
| 5842 apply(arguments, arg); | 5842 apply(arguments, arg); |
| 5843 } | 5843 } |
| 5844 | 5844 |
| 5845 @override | 5845 @override |
| 5846 visitRedirectingGenerativeConstructorInvoke( | 5846 visitRedirectingGenerativeConstructorInvoke( |
| 5847 NewExpression node, | 5847 NewExpression node, |
| 5848 ConstructorElement constructor, | 5848 ConstructorElement constructor, |
| 5849 InterfaceType type, | 5849 InterfaceType type, |
| 5850 NodeList arguments, | 5850 NodeList arguments, |
| 5851 Selector selector, | 5851 CallStructure callStructure, |
| 5852 arg) { | 5852 arg) { |
| 5853 visits.add(new Visit( | 5853 visits.add(new Visit( |
| 5854 VisitKind.VISIT_REDIRECTING_GENERATIVE_CONSTRUCTOR_INVOKE, | 5854 VisitKind.VISIT_REDIRECTING_GENERATIVE_CONSTRUCTOR_INVOKE, |
| 5855 element: constructor, | 5855 element: constructor, |
| 5856 type: type, | 5856 type: type, |
| 5857 arguments: arguments, | 5857 arguments: arguments, |
| 5858 selector: selector)); | 5858 selector: callStructure)); |
| 5859 apply(arguments, arg); | 5859 apply(arguments, arg); |
| 5860 } | 5860 } |
| 5861 | 5861 |
| 5862 @override | 5862 @override |
| 5863 errorAbstractClassConstructorInvoke( | 5863 errorAbstractClassConstructorInvoke( |
| 5864 NewExpression node, | 5864 NewExpression node, |
| 5865 ConstructorElement constructor, | 5865 ConstructorElement constructor, |
| 5866 InterfaceType type, | 5866 InterfaceType type, |
| 5867 NodeList arguments, | 5867 NodeList arguments, |
| 5868 Selector selector, | 5868 CallStructure callStructure, |
| 5869 arg) { | 5869 arg) { |
| 5870 visits.add(new Visit( | 5870 visits.add(new Visit( |
| 5871 VisitKind.ERROR_ABSTRACT_CLASS_CONSTRUCTOR_INVOKE, | 5871 VisitKind.ERROR_ABSTRACT_CLASS_CONSTRUCTOR_INVOKE, |
| 5872 element: constructor, | 5872 element: constructor, |
| 5873 type: type, | 5873 type: type, |
| 5874 arguments: arguments, | 5874 arguments: arguments, |
| 5875 selector: selector)); | 5875 selector: callStructure)); |
| 5876 apply(arguments, arg); | 5876 apply(arguments, arg); |
| 5877 } | 5877 } |
| 5878 | 5878 |
| 5879 @override | 5879 @override |
| 5880 errorUnresolvedRedirectingFactoryConstructorInvoke( | 5880 errorUnresolvedRedirectingFactoryConstructorInvoke( |
| 5881 NewExpression node, | 5881 NewExpression node, |
| 5882 ConstructorElement constructor, | 5882 ConstructorElement constructor, |
| 5883 InterfaceType type, | 5883 InterfaceType type, |
| 5884 NodeList arguments, | 5884 NodeList arguments, |
| 5885 Selector selector, | 5885 Selector selector, |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6097 VISIT_OPTIONAL_PARAMETER_DECL, | 6097 VISIT_OPTIONAL_PARAMETER_DECL, |
| 6098 VISIT_NAMED_PARAMETER_DECL, | 6098 VISIT_NAMED_PARAMETER_DECL, |
| 6099 VISIT_REQUIRED_INITIALIZING_FORMAL_DECL, | 6099 VISIT_REQUIRED_INITIALIZING_FORMAL_DECL, |
| 6100 VISIT_OPTIONAL_INITIALIZING_FORMAL_DECL, | 6100 VISIT_OPTIONAL_INITIALIZING_FORMAL_DECL, |
| 6101 VISIT_NAMED_INITIALIZING_FORMAL_DECL, | 6101 VISIT_NAMED_INITIALIZING_FORMAL_DECL, |
| 6102 | 6102 |
| 6103 ERROR_UNRESOLVED_POSTFIX, | 6103 ERROR_UNRESOLVED_POSTFIX, |
| 6104 | 6104 |
| 6105 // TODO(johnniwinther): Add tests for more error cases. | 6105 // TODO(johnniwinther): Add tests for more error cases. |
| 6106 } | 6106 } |
| OLD | NEW |