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 part of dart2js.semantics_visitor_test; | 5 part of dart2js.semantics_visitor_test; |
6 | 6 |
7 class SemanticSendTestVisitor extends SemanticTestVisitor { | 7 class SemanticSendTestVisitor extends SemanticTestVisitor { |
8 | 8 |
9 SemanticSendTestVisitor(TreeElements elements) : super(elements); | 9 SemanticSendTestVisitor(TreeElements elements) : super(elements); |
10 | 10 |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 visits.add(new Visit(VisitKind.VISIT_NOT_EQUALS, | 286 visits.add(new Visit(VisitKind.VISIT_NOT_EQUALS, |
287 left: left, right: right)); | 287 left: left, right: right)); |
288 apply(left, arg); | 288 apply(left, arg); |
289 apply(right, arg); | 289 apply(right, arg); |
290 } | 290 } |
291 | 291 |
292 @override | 292 @override |
293 visitDynamicPropertyPrefix( | 293 visitDynamicPropertyPrefix( |
294 Send node, | 294 Send node, |
295 Node receiver, | 295 Node receiver, |
| 296 Name name, |
296 IncDecOperator operator, | 297 IncDecOperator operator, |
297 Selector getterSelector, | |
298 Selector setterSelector, | |
299 arg) { | 298 arg) { |
300 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_PROPERTY_PREFIX, | 299 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_PROPERTY_PREFIX, |
301 receiver: receiver, operator: operator, | 300 receiver: receiver, operator: operator, name: name)); |
302 getter: getterSelector, setter: setterSelector)); | 301 super.visitDynamicPropertyPrefix(node, receiver, name, operator, arg); |
303 apply(receiver, arg); | |
304 } | 302 } |
305 | 303 |
306 @override | 304 @override |
307 visitDynamicPropertyPostfix( | 305 visitDynamicPropertyPostfix( |
308 Send node, | 306 Send node, |
309 Node receiver, | 307 Node receiver, |
| 308 Name name, |
310 IncDecOperator operator, | 309 IncDecOperator operator, |
311 Selector getterSelector, | |
312 Selector setterSelector, | |
313 arg) { | 310 arg) { |
314 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_PROPERTY_POSTFIX, | 311 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_PROPERTY_POSTFIX, |
315 receiver: receiver, operator: operator, | 312 receiver: receiver, operator: operator, name: name)); |
316 getter: getterSelector, setter: setterSelector)); | 313 super.visitDynamicPropertyPostfix(node, receiver, name, operator, arg); |
317 apply(receiver, arg); | |
318 } | 314 } |
319 | 315 |
320 @override | 316 @override |
321 visitDynamicPropertyGet( | 317 visitDynamicPropertyGet( |
322 Send node, | 318 Send node, |
323 Node receiver, | 319 Node receiver, |
324 Selector selector, | 320 Name name, |
325 arg) { | 321 arg) { |
326 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_PROPERTY_GET, | 322 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_PROPERTY_GET, |
327 receiver: receiver, name: selector.name)); | 323 receiver: receiver, name: name)); |
328 apply(receiver, arg); | 324 super.visitDynamicPropertyGet(node, receiver, name, arg); |
329 } | 325 } |
330 | 326 |
331 @override | 327 @override |
332 visitDynamicPropertyInvoke( | 328 visitDynamicPropertyInvoke( |
333 Send node, | 329 Send node, |
334 Node receiver, | 330 Node receiver, |
335 NodeList arguments, | 331 NodeList arguments, |
336 Selector selector, | 332 Selector selector, |
337 arg) { | 333 arg) { |
338 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_PROPERTY_INVOKE, | 334 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_PROPERTY_INVOKE, |
339 receiver: receiver, name: selector.name, arguments: arguments)); | 335 receiver: receiver, name: selector.name, arguments: arguments)); |
340 apply(receiver, arg); | 336 super.visitDynamicPropertyInvoke(node, receiver, arguments, selector, arg); |
341 apply(arguments, arg); | |
342 } | 337 } |
343 | 338 |
344 @override | 339 @override |
345 visitDynamicPropertySet( | 340 visitDynamicPropertySet( |
346 SendSet node, | 341 SendSet node, |
347 Node receiver, | 342 Node receiver, |
348 Selector selector, | 343 Name name, |
349 Node rhs, | 344 Node rhs, |
350 arg) { | 345 arg) { |
351 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_PROPERTY_SET, | 346 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_PROPERTY_SET, |
352 receiver: receiver, name: selector.name, rhs: rhs)); | 347 receiver: receiver, name: name, rhs: rhs)); |
353 super.visitDynamicPropertySet(node, receiver, selector, rhs, arg); | 348 super.visitDynamicPropertySet(node, receiver, name, rhs, arg); |
354 } | 349 } |
355 | 350 |
356 @override | 351 @override |
357 visitDynamicTypeLiteralGet( | 352 visitDynamicTypeLiteralGet( |
358 Send node, | 353 Send node, |
359 ConstantExpression constant, | 354 ConstantExpression constant, |
360 arg) { | 355 arg) { |
361 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_GET, | 356 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_GET, |
362 constant: constant.getText())); | 357 constant: constant.getText())); |
363 } | 358 } |
(...skipping 18 matching lines...) Expand all Loading... |
382 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_SET, | 377 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_SET, |
383 constant: constant.getText(), rhs: rhs)); | 378 constant: constant.getText(), rhs: rhs)); |
384 super.visitDynamicTypeLiteralSet(node, constant, rhs, arg); | 379 super.visitDynamicTypeLiteralSet(node, constant, rhs, arg); |
385 } | 380 } |
386 | 381 |
387 @override | 382 @override |
388 visitExpressionInvoke( | 383 visitExpressionInvoke( |
389 Send node, | 384 Send node, |
390 Node expression, | 385 Node expression, |
391 NodeList arguments, | 386 NodeList arguments, |
392 Selector selector, | 387 CallStructure callStructure, |
393 arg) { | 388 arg) { |
394 visits.add(new Visit(VisitKind.VISIT_EXPRESSION_INVOKE, | 389 visits.add(new Visit(VisitKind.VISIT_EXPRESSION_INVOKE, |
395 receiver: expression, arguments: arguments)); | 390 receiver: expression, arguments: arguments)); |
396 } | 391 } |
397 | 392 |
398 @override | 393 @override |
399 visitIs( | 394 visitIs( |
400 Send node, | 395 Send node, |
401 Node expression, | 396 Node expression, |
402 DartType type, | 397 DartType type, |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 NodeList arguments, | 788 NodeList arguments, |
794 CallStructure callStructure, | 789 CallStructure callStructure, |
795 arg) { | 790 arg) { |
796 visits.add(new Visit(VisitKind.VISIT_THIS_INVOKE, arguments: arguments)); | 791 visits.add(new Visit(VisitKind.VISIT_THIS_INVOKE, arguments: arguments)); |
797 apply(arguments, arg); | 792 apply(arguments, arg); |
798 } | 793 } |
799 | 794 |
800 @override | 795 @override |
801 visitThisPropertyGet( | 796 visitThisPropertyGet( |
802 Send node, | 797 Send node, |
803 Selector selector, | 798 Name name, |
804 arg) { | 799 arg) { |
805 visits.add(new Visit(VisitKind.VISIT_THIS_PROPERTY_GET, | 800 visits.add(new Visit(VisitKind.VISIT_THIS_PROPERTY_GET, |
806 name: selector.name)); | 801 name: name)); |
| 802 super.visitThisPropertyGet(node, name, arg); |
807 } | 803 } |
808 | 804 |
809 @override | 805 @override |
810 visitThisPropertyInvoke( | 806 visitThisPropertyInvoke( |
811 Send node, | 807 Send node, |
812 NodeList arguments, | 808 NodeList arguments, |
813 Selector selector, | 809 Selector selector, |
814 arg) { | 810 arg) { |
815 visits.add(new Visit(VisitKind.VISIT_THIS_PROPERTY_INVOKE, | 811 visits.add(new Visit(VisitKind.VISIT_THIS_PROPERTY_INVOKE, |
816 name: selector.name, arguments: arguments)); | 812 name: selector.name, arguments: arguments)); |
817 apply(arguments, arg); | 813 super.visitThisPropertyInvoke(node, arguments, selector, arg); |
818 } | 814 } |
819 | 815 |
820 @override | 816 @override |
821 visitThisPropertySet( | 817 visitThisPropertySet( |
822 SendSet node, | 818 SendSet node, |
823 Selector selector, | 819 Name name, |
824 Node rhs, | 820 Node rhs, |
825 arg) { | 821 arg) { |
826 visits.add(new Visit(VisitKind.VISIT_THIS_PROPERTY_SET, | 822 visits.add(new Visit(VisitKind.VISIT_THIS_PROPERTY_SET, |
827 name: selector.name, rhs: rhs)); | 823 name: name, rhs: rhs)); |
828 apply(rhs, arg); | 824 super.visitThisPropertySet(node, name, rhs, arg); |
829 } | 825 } |
830 | 826 |
831 @override | 827 @override |
832 visitTopLevelFieldGet( | 828 visitTopLevelFieldGet( |
833 Send node, | 829 Send node, |
834 FieldElement field, | 830 FieldElement field, |
835 arg) { | 831 arg) { |
836 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_FIELD_GET, element: field)); | 832 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_FIELD_GET, element: field)); |
837 } | 833 } |
838 | 834 |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1312 visits.add(new Visit(VisitKind.VISIT_SUPER_INDEX_SET, | 1308 visits.add(new Visit(VisitKind.VISIT_SUPER_INDEX_SET, |
1313 element: function, index: index, rhs: rhs)); | 1309 element: function, index: index, rhs: rhs)); |
1314 apply(index, arg); | 1310 apply(index, arg); |
1315 apply(rhs, arg); | 1311 apply(rhs, arg); |
1316 } | 1312 } |
1317 | 1313 |
1318 @override | 1314 @override |
1319 visitDynamicPropertyCompound( | 1315 visitDynamicPropertyCompound( |
1320 Send node, | 1316 Send node, |
1321 Node receiver, | 1317 Node receiver, |
| 1318 Name name, |
1322 AssignmentOperator operator, | 1319 AssignmentOperator operator, |
1323 Node rhs, | 1320 Node rhs, |
1324 Selector getterSelector, | |
1325 Selector setterSelector, | |
1326 arg) { | 1321 arg) { |
1327 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_PROPERTY_COMPOUND, | 1322 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_PROPERTY_COMPOUND, |
1328 receiver: receiver, operator: operator, rhs: rhs, | 1323 receiver: receiver, operator: operator, rhs: rhs, |
1329 getter: getterSelector, setter: setterSelector)); | 1324 name: name)); |
1330 apply(receiver, arg); | 1325 super.visitDynamicPropertyCompound( |
1331 apply(rhs, arg); | 1326 node, receiver, name, operator, rhs, arg); |
1332 } | 1327 } |
1333 | 1328 |
1334 @override | 1329 @override |
1335 visitFinalLocalVariableCompound( | 1330 visitFinalLocalVariableCompound( |
1336 Send node, | 1331 Send node, |
1337 LocalVariableElement variable, | 1332 LocalVariableElement variable, |
1338 AssignmentOperator operator, | 1333 AssignmentOperator operator, |
1339 Node rhs, | 1334 Node rhs, |
1340 arg) { | 1335 arg) { |
1341 visits.add(new Visit(VisitKind.VISIT_FINAL_LOCAL_VARIABLE_COMPOUND, | 1336 visits.add(new Visit(VisitKind.VISIT_FINAL_LOCAL_VARIABLE_COMPOUND, |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1555 arg) { | 1550 arg) { |
1556 visits.add(new Visit(VisitKind.VISIT_SUPER_GETTER_SETTER_COMPOUND, | 1551 visits.add(new Visit(VisitKind.VISIT_SUPER_GETTER_SETTER_COMPOUND, |
1557 operator: operator, rhs: rhs, | 1552 operator: operator, rhs: rhs, |
1558 getter: getter, setter: setter)); | 1553 getter: getter, setter: setter)); |
1559 apply(rhs, arg); | 1554 apply(rhs, arg); |
1560 } | 1555 } |
1561 | 1556 |
1562 @override | 1557 @override |
1563 visitThisPropertyCompound( | 1558 visitThisPropertyCompound( |
1564 Send node, | 1559 Send node, |
| 1560 Name name, |
1565 AssignmentOperator operator, | 1561 AssignmentOperator operator, |
1566 Node rhs, | 1562 Node rhs, |
1567 Selector getterSelector, | |
1568 Selector setterSelector, | |
1569 arg) { | 1563 arg) { |
1570 visits.add(new Visit(VisitKind.VISIT_THIS_PROPERTY_COMPOUND, | 1564 visits.add(new Visit(VisitKind.VISIT_THIS_PROPERTY_COMPOUND, |
1571 operator: operator, rhs: rhs, | 1565 name: name, operator: operator, rhs: rhs)); |
1572 getter: getterSelector, setter: setterSelector)); | 1566 super.visitThisPropertyCompound(node, name, operator, rhs, arg); |
1573 apply(rhs, arg); | |
1574 } | 1567 } |
1575 | 1568 |
1576 @override | 1569 @override |
1577 visitTopLevelFieldCompound( | 1570 visitTopLevelFieldCompound( |
1578 Send node, | 1571 Send node, |
1579 FieldElement field, | 1572 FieldElement field, |
1580 AssignmentOperator operator, | 1573 AssignmentOperator operator, |
1581 Node rhs, | 1574 Node rhs, |
1582 arg) { | 1575 arg) { |
1583 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_FIELD_COMPOUND, | 1576 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_FIELD_COMPOUND, |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1976 FunctionElement setter, | 1969 FunctionElement setter, |
1977 IncDecOperator operator, | 1970 IncDecOperator operator, |
1978 arg) { | 1971 arg) { |
1979 visits.add(new Visit(VisitKind.VISIT_SUPER_METHOD_SETTER_PREFIX, | 1972 visits.add(new Visit(VisitKind.VISIT_SUPER_METHOD_SETTER_PREFIX, |
1980 getter: method, setter: setter, operator: operator)); | 1973 getter: method, setter: setter, operator: operator)); |
1981 } | 1974 } |
1982 | 1975 |
1983 @override | 1976 @override |
1984 visitThisPropertyPrefix( | 1977 visitThisPropertyPrefix( |
1985 Send node, | 1978 Send node, |
| 1979 Name name, |
1986 IncDecOperator operator, | 1980 IncDecOperator operator, |
1987 Selector getterSelector, | |
1988 Selector setterSelector, | |
1989 arg) { | 1981 arg) { |
1990 visits.add(new Visit(VisitKind.VISIT_THIS_PROPERTY_PREFIX, | 1982 visits.add(new Visit(VisitKind.VISIT_THIS_PROPERTY_PREFIX, |
1991 operator: operator, | 1983 name: name, operator: operator)); |
1992 getter: getterSelector, setter: setterSelector)); | 1984 super.visitThisPropertyPrefix(node, name, operator, arg); |
1993 } | 1985 } |
1994 | 1986 |
1995 @override | 1987 @override |
1996 visitTopLevelFieldPrefix( | 1988 visitTopLevelFieldPrefix( |
1997 Send node, | 1989 Send node, |
1998 FieldElement field, | 1990 FieldElement field, |
1999 IncDecOperator operator, | 1991 IncDecOperator operator, |
2000 arg) { | 1992 arg) { |
2001 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_FIELD_PREFIX, | 1993 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_FIELD_PREFIX, |
2002 element: field, operator: operator)); | 1994 element: field, operator: operator)); |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2197 FunctionElement setter, | 2189 FunctionElement setter, |
2198 IncDecOperator operator, | 2190 IncDecOperator operator, |
2199 arg) { | 2191 arg) { |
2200 visits.add(new Visit(VisitKind.VISIT_SUPER_METHOD_SETTER_POSTFIX, | 2192 visits.add(new Visit(VisitKind.VISIT_SUPER_METHOD_SETTER_POSTFIX, |
2201 getter: method, setter: setter, operator: operator)); | 2193 getter: method, setter: setter, operator: operator)); |
2202 } | 2194 } |
2203 | 2195 |
2204 @override | 2196 @override |
2205 visitThisPropertyPostfix( | 2197 visitThisPropertyPostfix( |
2206 Send node, | 2198 Send node, |
| 2199 Name name, |
2207 IncDecOperator operator, | 2200 IncDecOperator operator, |
2208 Selector getterSelector, | |
2209 Selector setterSelector, | |
2210 arg) { | 2201 arg) { |
2211 visits.add(new Visit(VisitKind.VISIT_THIS_PROPERTY_POSTFIX, | 2202 visits.add(new Visit(VisitKind.VISIT_THIS_PROPERTY_POSTFIX, |
2212 operator: operator, | 2203 name: name, operator: operator)); |
2213 getter: getterSelector, setter: setterSelector)); | 2204 super.visitThisPropertyPostfix(node, name, operator, arg); |
2214 } | 2205 } |
2215 | 2206 |
2216 @override | 2207 @override |
2217 visitTopLevelFieldPostfix( | 2208 visitTopLevelFieldPostfix( |
2218 Send node, | 2209 Send node, |
2219 FieldElement field, | 2210 FieldElement field, |
2220 IncDecOperator operator, | 2211 IncDecOperator operator, |
2221 arg) { | 2212 arg) { |
2222 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_FIELD_POSTFIX, | 2213 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_FIELD_POSTFIX, |
2223 element: field, operator: operator)); | 2214 element: field, operator: operator)); |
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2996 IncDecOperator operator, | 2987 IncDecOperator operator, |
2997 arg) { | 2988 arg) { |
2998 visits.add(new Visit(VisitKind.VISIT_UNRESOLVED_SUPER_SETTER_PREFIX, | 2989 visits.add(new Visit(VisitKind.VISIT_UNRESOLVED_SUPER_SETTER_PREFIX, |
2999 getter: getter, operator: operator)); | 2990 getter: getter, operator: operator)); |
3000 } | 2991 } |
3001 | 2992 |
3002 @override | 2993 @override |
3003 visitIfNotNullDynamicPropertyGet( | 2994 visitIfNotNullDynamicPropertyGet( |
3004 Send node, | 2995 Send node, |
3005 Node receiver, | 2996 Node receiver, |
3006 Selector selector, | 2997 Name name, |
3007 arg) { | 2998 arg) { |
3008 visits.add(new Visit(VisitKind.VISIT_IF_NOT_NULL_DYNAMIC_PROPERTY_GET, | 2999 visits.add(new Visit(VisitKind.VISIT_IF_NOT_NULL_DYNAMIC_PROPERTY_GET, |
3009 receiver: receiver, name: selector.name)); | 3000 receiver: receiver, name: name)); |
3010 super.visitIfNotNullDynamicPropertyGet(node, receiver, selector, arg); | 3001 super.visitIfNotNullDynamicPropertyGet(node, receiver, name, arg); |
3011 } | 3002 } |
3012 | 3003 |
3013 @override | 3004 @override |
3014 visitIfNotNullDynamicPropertySet( | 3005 visitIfNotNullDynamicPropertySet( |
3015 Send node, | 3006 Send node, |
3016 Node receiver, | 3007 Node receiver, |
3017 Selector selector, | 3008 Name name, |
3018 Node rhs, | 3009 Node rhs, |
3019 arg) { | 3010 arg) { |
3020 visits.add(new Visit(VisitKind.VISIT_IF_NOT_NULL_DYNAMIC_PROPERTY_SET, | 3011 visits.add(new Visit(VisitKind.VISIT_IF_NOT_NULL_DYNAMIC_PROPERTY_SET, |
3021 receiver: receiver, name: selector.name, rhs: rhs)); | 3012 receiver: receiver, name: name, rhs: rhs)); |
3022 super.visitIfNotNullDynamicPropertySet(node, receiver, selector, rhs, arg); | 3013 super.visitIfNotNullDynamicPropertySet(node, receiver, name, rhs, arg); |
3023 } | 3014 } |
3024 | 3015 |
3025 @override | 3016 @override |
3026 visitIfNotNullDynamicPropertyInvoke( | 3017 visitIfNotNullDynamicPropertyInvoke( |
3027 Send node, | 3018 Send node, |
3028 Node receiver, | 3019 Node receiver, |
3029 NodeList arguments, | 3020 NodeList arguments, |
3030 Selector selector, | 3021 Selector selector, |
3031 arg) { | 3022 arg) { |
3032 visits.add(new Visit(VisitKind.VISIT_IF_NOT_NULL_DYNAMIC_PROPERTY_INVOKE, | 3023 visits.add(new Visit(VisitKind.VISIT_IF_NOT_NULL_DYNAMIC_PROPERTY_INVOKE, |
3033 receiver: receiver, selector: selector, arguments: arguments)); | 3024 receiver: receiver, selector: selector, arguments: arguments)); |
3034 super.visitIfNotNullDynamicPropertyInvoke( | 3025 super.visitIfNotNullDynamicPropertyInvoke( |
3035 node, receiver, arguments, selector, arg); | 3026 node, receiver, arguments, selector, arg); |
3036 } | 3027 } |
3037 | 3028 |
3038 @override | 3029 @override |
3039 visitIfNotNullDynamicPropertyPrefix( | 3030 visitIfNotNullDynamicPropertyPrefix( |
3040 Send node, | 3031 Send node, |
3041 Node receiver, | 3032 Node receiver, |
| 3033 Name name, |
3042 IncDecOperator operator, | 3034 IncDecOperator operator, |
3043 Selector getterSelector, | |
3044 Selector setterSelector, | |
3045 arg) { | 3035 arg) { |
3046 visits.add(new Visit(VisitKind.VISIT_IF_NOT_NULL_DYNAMIC_PROPERTY_PREFIX, | 3036 visits.add(new Visit(VisitKind.VISIT_IF_NOT_NULL_DYNAMIC_PROPERTY_PREFIX, |
3047 receiver: receiver, operator: operator, | 3037 receiver: receiver, name: name, operator: operator)); |
3048 getter: getterSelector, setter: setterSelector)); | |
3049 super.visitIfNotNullDynamicPropertyPrefix( | 3038 super.visitIfNotNullDynamicPropertyPrefix( |
3050 node, receiver, operator, getterSelector, setterSelector, arg); | 3039 node, receiver, name, operator, arg); |
3051 } | 3040 } |
3052 | 3041 |
3053 @override | 3042 @override |
3054 visitIfNotNullDynamicPropertyPostfix( | 3043 visitIfNotNullDynamicPropertyPostfix( |
3055 Send node, | 3044 Send node, |
3056 Node receiver, | 3045 Node receiver, |
| 3046 Name name, |
3057 IncDecOperator operator, | 3047 IncDecOperator operator, |
3058 Selector getterSelector, | |
3059 Selector setterSelector, | |
3060 arg) { | 3048 arg) { |
3061 visits.add(new Visit(VisitKind.VISIT_IF_NOT_NULL_DYNAMIC_PROPERTY_POSTFIX, | 3049 visits.add(new Visit(VisitKind.VISIT_IF_NOT_NULL_DYNAMIC_PROPERTY_POSTFIX, |
3062 receiver: receiver, operator: operator, | 3050 receiver: receiver, name: name, operator: operator)); |
3063 getter: getterSelector, setter: setterSelector)); | |
3064 super.visitIfNotNullDynamicPropertyPostfix( | 3051 super.visitIfNotNullDynamicPropertyPostfix( |
3065 node, receiver, operator, getterSelector, setterSelector, arg); | 3052 node, receiver, name, operator, arg); |
3066 } | 3053 } |
3067 | 3054 |
3068 @override | 3055 @override |
3069 visitIfNotNullDynamicPropertyCompound( | 3056 visitIfNotNullDynamicPropertyCompound( |
3070 Send node, | 3057 Send node, |
3071 Node receiver, | 3058 Node receiver, |
| 3059 Name name, |
3072 AssignmentOperator operator, | 3060 AssignmentOperator operator, |
3073 Node rhs, | 3061 Node rhs, |
3074 Selector getterSelector, | |
3075 Selector setterSelector, | |
3076 arg) { | 3062 arg) { |
3077 visits.add(new Visit(VisitKind.VISIT_IF_NOT_NULL_DYNAMIC_PROPERTY_COMPOUND, | 3063 visits.add(new Visit(VisitKind.VISIT_IF_NOT_NULL_DYNAMIC_PROPERTY_COMPOUND, |
3078 receiver: receiver, operator: operator, rhs: rhs, | 3064 receiver: receiver, name: name, operator: operator, rhs: rhs)); |
3079 getter: getterSelector, setter: setterSelector)); | |
3080 super.visitIfNotNullDynamicPropertyCompound( | 3065 super.visitIfNotNullDynamicPropertyCompound( |
3081 node, receiver, operator, rhs, getterSelector, setterSelector, arg); | 3066 node, receiver, name, operator, rhs, arg); |
3082 } | 3067 } |
3083 | 3068 |
3084 @override | 3069 @override |
3085 visitIfNull( | 3070 visitIfNull( |
3086 Send node, | 3071 Send node, |
3087 Node left, | 3072 Node left, |
3088 Node right, | 3073 Node right, |
3089 arg) { | 3074 arg) { |
3090 visits.add(new Visit(VisitKind.VISIT_IF_NULL, left: left, right: right)); | 3075 visits.add(new Visit(VisitKind.VISIT_IF_NULL, left: left, right: right)); |
3091 super.visitIfNull(node, left, right, arg); | 3076 super.visitIfNull(node, left, right, arg); |
(...skipping 22 matching lines...) Expand all Loading... |
3114 } | 3099 } |
3115 | 3100 |
3116 @override | 3101 @override |
3117 previsitDeferredAccess( | 3102 previsitDeferredAccess( |
3118 Send node, | 3103 Send node, |
3119 PrefixElement prefix, | 3104 PrefixElement prefix, |
3120 arg) { | 3105 arg) { |
3121 visits.add(new Visit(VisitKind.PREVISIT_DEFERRED_ACCESS, element: prefix)); | 3106 visits.add(new Visit(VisitKind.PREVISIT_DEFERRED_ACCESS, element: prefix)); |
3122 } | 3107 } |
3123 } | 3108 } |
OLD | NEW |