Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(423)

Side by Side Diff: tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart

Issue 1916053003: Add toStructuredText to ConstantExpression and align method names with ConstantValue (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: dartfmt Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/compiler/dart2js/semantic_visitor_test_decl_visitor.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 apply(receiver, arg); 237 apply(receiver, arg);
238 apply(index, arg); 238 apply(index, arg);
239 } 239 }
240 240
241 @override 241 @override
242 visitClassTypeLiteralGet( 242 visitClassTypeLiteralGet(
243 Send node, 243 Send node,
244 ConstantExpression constant, 244 ConstantExpression constant,
245 arg) { 245 arg) {
246 visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_GET, 246 visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_GET,
247 constant: constant.getText())); 247 constant: constant.toDartText()));
248 } 248 }
249 249
250 @override 250 @override
251 visitClassTypeLiteralInvoke( 251 visitClassTypeLiteralInvoke(
252 Send node, 252 Send node,
253 ConstantExpression constant, 253 ConstantExpression constant,
254 NodeList arguments, 254 NodeList arguments,
255 CallStructure callStructure, 255 CallStructure callStructure,
256 arg) { 256 arg) {
257 visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_INVOKE, 257 visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_INVOKE,
258 constant: constant.getText(), arguments: arguments)); 258 constant: constant.toDartText(), arguments: arguments));
259 apply(arguments, arg); 259 apply(arguments, arg);
260 } 260 }
261 261
262 @override 262 @override
263 visitClassTypeLiteralSet( 263 visitClassTypeLiteralSet(
264 SendSet node, 264 SendSet node,
265 ConstantExpression constant, 265 ConstantExpression constant,
266 Node rhs, 266 Node rhs,
267 arg) { 267 arg) {
268 visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_SET, 268 visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_SET,
269 constant: constant.getText(), rhs: rhs)); 269 constant: constant.toDartText(), rhs: rhs));
270 super.visitClassTypeLiteralSet(node, constant, rhs, arg); 270 super.visitClassTypeLiteralSet(node, constant, rhs, arg);
271 } 271 }
272 272
273 @override 273 @override
274 visitNotEquals( 274 visitNotEquals(
275 Send node, 275 Send node,
276 Node left, 276 Node left,
277 Node right, 277 Node right,
278 arg) { 278 arg) {
279 visits.add(new Visit(VisitKind.VISIT_NOT_EQUALS, 279 visits.add(new Visit(VisitKind.VISIT_NOT_EQUALS,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 receiver: receiver, name: name, rhs: rhs)); 340 receiver: receiver, name: name, rhs: rhs));
341 super.visitDynamicPropertySet(node, receiver, name, rhs, arg); 341 super.visitDynamicPropertySet(node, receiver, name, rhs, arg);
342 } 342 }
343 343
344 @override 344 @override
345 visitDynamicTypeLiteralGet( 345 visitDynamicTypeLiteralGet(
346 Send node, 346 Send node,
347 ConstantExpression constant, 347 ConstantExpression constant,
348 arg) { 348 arg) {
349 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_GET, 349 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_GET,
350 constant: constant.getText())); 350 constant: constant.toDartText()));
351 } 351 }
352 352
353 @override 353 @override
354 visitDynamicTypeLiteralInvoke( 354 visitDynamicTypeLiteralInvoke(
355 Send node, 355 Send node,
356 ConstantExpression constant, 356 ConstantExpression constant,
357 NodeList arguments, 357 NodeList arguments,
358 CallStructure callStructure, 358 CallStructure callStructure,
359 arg) { 359 arg) {
360 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_INVOKE, 360 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_INVOKE,
361 constant: constant.getText(), arguments: arguments)); 361 constant: constant.toDartText(), arguments: arguments));
362 } 362 }
363 363
364 @override 364 @override
365 visitDynamicTypeLiteralSet( 365 visitDynamicTypeLiteralSet(
366 Send node, 366 Send node,
367 ConstantExpression constant, 367 ConstantExpression constant,
368 Node rhs, 368 Node rhs,
369 arg) { 369 arg) {
370 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_SET, 370 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_SET,
371 constant: constant.getText(), rhs: rhs)); 371 constant: constant.toDartText(), rhs: rhs));
372 super.visitDynamicTypeLiteralSet(node, constant, rhs, arg); 372 super.visitDynamicTypeLiteralSet(node, constant, rhs, arg);
373 } 373 }
374 374
375 @override 375 @override
376 visitExpressionInvoke( 376 visitExpressionInvoke(
377 Send node, 377 Send node,
378 Node expression, 378 Node expression,
379 NodeList arguments, 379 NodeList arguments,
380 CallStructure callStructure, 380 CallStructure callStructure,
381 arg) { 381 arg) {
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 element: element, rhs: rhs)); 1002 element: element, rhs: rhs));
1003 super.visitTypeVariableTypeLiteralSet(node, element, rhs, arg); 1003 super.visitTypeVariableTypeLiteralSet(node, element, rhs, arg);
1004 } 1004 }
1005 1005
1006 @override 1006 @override
1007 visitTypedefTypeLiteralGet( 1007 visitTypedefTypeLiteralGet(
1008 Send node, 1008 Send node,
1009 ConstantExpression constant, 1009 ConstantExpression constant,
1010 arg) { 1010 arg) {
1011 visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_GET, 1011 visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_GET,
1012 constant: constant.getText())); 1012 constant: constant.toDartText()));
1013 } 1013 }
1014 1014
1015 @override 1015 @override
1016 visitTypedefTypeLiteralInvoke( 1016 visitTypedefTypeLiteralInvoke(
1017 Send node, 1017 Send node,
1018 ConstantExpression constant, 1018 ConstantExpression constant,
1019 NodeList arguments, 1019 NodeList arguments,
1020 CallStructure callStructure, 1020 CallStructure callStructure,
1021 arg) { 1021 arg) {
1022 visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_INVOKE, 1022 visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_INVOKE,
1023 constant: constant.getText(), arguments: arguments)); 1023 constant: constant.toDartText(), arguments: arguments));
1024 apply(arguments, arg); 1024 apply(arguments, arg);
1025 } 1025 }
1026 1026
1027 @override 1027 @override
1028 visitTypedefTypeLiteralSet( 1028 visitTypedefTypeLiteralSet(
1029 SendSet node, 1029 SendSet node,
1030 ConstantExpression constant, 1030 ConstantExpression constant,
1031 Node rhs, 1031 Node rhs,
1032 arg) { 1032 arg) {
1033 visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_SET, 1033 visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_SET,
1034 constant: constant.getText(), rhs: rhs)); 1034 constant: constant.toDartText(), rhs: rhs));
1035 super.visitTypedefTypeLiteralSet(node, constant, rhs, arg); 1035 super.visitTypedefTypeLiteralSet(node, constant, rhs, arg);
1036 } 1036 }
1037 1037
1038 @override 1038 @override
1039 visitUnary( 1039 visitUnary(
1040 Send node, 1040 Send node,
1041 UnaryOperator operator, 1041 UnaryOperator operator,
1042 Node expression, 1042 Node expression,
1043 arg) { 1043 arg) {
1044 visits.add(new Visit(VisitKind.VISIT_UNARY, 1044 visits.add(new Visit(VisitKind.VISIT_UNARY,
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
1760 } 1760 }
1761 1761
1762 @override 1762 @override
1763 visitClassTypeLiteralCompound( 1763 visitClassTypeLiteralCompound(
1764 Send node, 1764 Send node,
1765 ConstantExpression constant, 1765 ConstantExpression constant,
1766 AssignmentOperator operator, 1766 AssignmentOperator operator,
1767 Node rhs, 1767 Node rhs,
1768 arg) { 1768 arg) {
1769 visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_COMPOUND, 1769 visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_COMPOUND,
1770 constant: constant.getText(), operator: operator, rhs: rhs)); 1770 constant: constant.toDartText(), operator: operator, rhs: rhs));
1771 apply(rhs, arg); 1771 apply(rhs, arg);
1772 } 1772 }
1773 1773
1774 @override 1774 @override
1775 visitDynamicTypeLiteralCompound( 1775 visitDynamicTypeLiteralCompound(
1776 Send node, 1776 Send node,
1777 ConstantExpression constant, 1777 ConstantExpression constant,
1778 AssignmentOperator operator, 1778 AssignmentOperator operator,
1779 Node rhs, 1779 Node rhs,
1780 arg) { 1780 arg) {
1781 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_COMPOUND, 1781 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_COMPOUND,
1782 constant: constant.getText(), operator: operator, rhs: rhs)); 1782 constant: constant.toDartText(), operator: operator, rhs: rhs));
1783 apply(rhs, arg); 1783 apply(rhs, arg);
1784 } 1784 }
1785 1785
1786 @override 1786 @override
1787 visitTypeVariableTypeLiteralCompound( 1787 visitTypeVariableTypeLiteralCompound(
1788 Send node, 1788 Send node,
1789 TypeVariableElement element, 1789 TypeVariableElement element,
1790 AssignmentOperator operator, 1790 AssignmentOperator operator,
1791 Node rhs, 1791 Node rhs,
1792 arg) { 1792 arg) {
1793 visits.add(new Visit(VisitKind.VISIT_TYPE_VARIABLE_TYPE_LITERAL_COMPOUND, 1793 visits.add(new Visit(VisitKind.VISIT_TYPE_VARIABLE_TYPE_LITERAL_COMPOUND,
1794 element: element, operator: operator, rhs: rhs)); 1794 element: element, operator: operator, rhs: rhs));
1795 apply(rhs, arg); 1795 apply(rhs, arg);
1796 } 1796 }
1797 1797
1798 @override 1798 @override
1799 visitTypedefTypeLiteralCompound( 1799 visitTypedefTypeLiteralCompound(
1800 Send node, 1800 Send node,
1801 ConstantExpression constant, 1801 ConstantExpression constant,
1802 AssignmentOperator operator, 1802 AssignmentOperator operator,
1803 Node rhs, 1803 Node rhs,
1804 arg) { 1804 arg) {
1805 visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_COMPOUND, 1805 visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_COMPOUND,
1806 constant: constant.getText(), operator: operator, rhs: rhs)); 1806 constant: constant.toDartText(), operator: operator, rhs: rhs));
1807 apply(rhs, arg); 1807 apply(rhs, arg);
1808 } 1808 }
1809 1809
1810 @override 1810 @override
1811 visitLocalFunctionPrefix( 1811 visitLocalFunctionPrefix(
1812 Send node, 1812 Send node,
1813 LocalFunctionElement function, 1813 LocalFunctionElement function,
1814 IncDecOperator operator, 1814 IncDecOperator operator,
1815 arg) { 1815 arg) {
1816 visits.add(new Visit(VisitKind.VISIT_LOCAL_FUNCTION_PREFIX, 1816 visits.add(new Visit(VisitKind.VISIT_LOCAL_FUNCTION_PREFIX,
1817 element: function, operator: operator)); 1817 element: function, operator: operator));
1818 } 1818 }
1819 1819
1820 @override 1820 @override
1821 visitClassTypeLiteralPrefix( 1821 visitClassTypeLiteralPrefix(
1822 Send node, 1822 Send node,
1823 ConstantExpression constant, 1823 ConstantExpression constant,
1824 IncDecOperator operator, 1824 IncDecOperator operator,
1825 arg) { 1825 arg) {
1826 visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_PREFIX, 1826 visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_PREFIX,
1827 constant: constant.getText(), operator: operator)); 1827 constant: constant.toDartText(), operator: operator));
1828 } 1828 }
1829 1829
1830 @override 1830 @override
1831 visitDynamicTypeLiteralPrefix( 1831 visitDynamicTypeLiteralPrefix(
1832 Send node, 1832 Send node,
1833 ConstantExpression constant, 1833 ConstantExpression constant,
1834 IncDecOperator operator, 1834 IncDecOperator operator,
1835 arg) { 1835 arg) {
1836 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_PREFIX, 1836 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_PREFIX,
1837 constant: constant.getText(), operator: operator)); 1837 constant: constant.toDartText(), operator: operator));
1838 } 1838 }
1839 1839
1840 @override 1840 @override
1841 visitLocalVariablePrefix( 1841 visitLocalVariablePrefix(
1842 Send node, 1842 Send node,
1843 LocalVariableElement variable, 1843 LocalVariableElement variable,
1844 IncDecOperator operator, 1844 IncDecOperator operator,
1845 arg) { 1845 arg) {
1846 visits.add(new Visit(VisitKind.VISIT_LOCAL_VARIABLE_PREFIX, 1846 visits.add(new Visit(VisitKind.VISIT_LOCAL_VARIABLE_PREFIX,
1847 element: variable, operator: operator)); 1847 element: variable, operator: operator));
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
2030 element: element, operator: operator)); 2030 element: element, operator: operator));
2031 } 2031 }
2032 2032
2033 @override 2033 @override
2034 visitTypedefTypeLiteralPrefix( 2034 visitTypedefTypeLiteralPrefix(
2035 Send node, 2035 Send node,
2036 ConstantExpression constant, 2036 ConstantExpression constant,
2037 IncDecOperator operator, 2037 IncDecOperator operator,
2038 arg) { 2038 arg) {
2039 visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_PREFIX, 2039 visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_PREFIX,
2040 constant: constant.getText(), operator: operator)); 2040 constant: constant.toDartText(), operator: operator));
2041 } 2041 }
2042 2042
2043 @override 2043 @override
2044 visitLocalFunctionPostfix( 2044 visitLocalFunctionPostfix(
2045 Send node, 2045 Send node,
2046 LocalFunctionElement function, 2046 LocalFunctionElement function,
2047 IncDecOperator operator, 2047 IncDecOperator operator,
2048 arg) { 2048 arg) {
2049 visits.add(new Visit(VisitKind.VISIT_LOCAL_FUNCTION_POSTFIX, 2049 visits.add(new Visit(VisitKind.VISIT_LOCAL_FUNCTION_POSTFIX,
2050 element: function, operator: operator)); 2050 element: function, operator: operator));
2051 } 2051 }
2052 2052
2053 @override 2053 @override
2054 visitClassTypeLiteralPostfix( 2054 visitClassTypeLiteralPostfix(
2055 Send node, 2055 Send node,
2056 ConstantExpression constant, 2056 ConstantExpression constant,
2057 IncDecOperator operator, 2057 IncDecOperator operator,
2058 arg) { 2058 arg) {
2059 visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_POSTFIX, 2059 visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_POSTFIX,
2060 constant: constant.getText(), operator: operator)); 2060 constant: constant.toDartText(), operator: operator));
2061 } 2061 }
2062 2062
2063 @override 2063 @override
2064 visitDynamicTypeLiteralPostfix( 2064 visitDynamicTypeLiteralPostfix(
2065 Send node, 2065 Send node,
2066 ConstantExpression constant, 2066 ConstantExpression constant,
2067 IncDecOperator operator, 2067 IncDecOperator operator,
2068 arg) { 2068 arg) {
2069 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_POSTFIX, 2069 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_POSTFIX,
2070 constant: constant.getText(), operator: operator)); 2070 constant: constant.toDartText(), operator: operator));
2071 } 2071 }
2072 2072
2073 @override 2073 @override
2074 visitLocalVariablePostfix( 2074 visitLocalVariablePostfix(
2075 Send node, 2075 Send node,
2076 LocalVariableElement variable, 2076 LocalVariableElement variable,
2077 IncDecOperator operator, 2077 IncDecOperator operator,
2078 arg) { 2078 arg) {
2079 visits.add(new Visit(VisitKind.VISIT_LOCAL_VARIABLE_POSTFIX, 2079 visits.add(new Visit(VisitKind.VISIT_LOCAL_VARIABLE_POSTFIX,
2080 element: variable, operator: operator)); 2080 element: variable, operator: operator));
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
2250 element: element, operator: operator)); 2250 element: element, operator: operator));
2251 } 2251 }
2252 2252
2253 @override 2253 @override
2254 visitTypedefTypeLiteralPostfix( 2254 visitTypedefTypeLiteralPostfix(
2255 Send node, 2255 Send node,
2256 ConstantExpression constant, 2256 ConstantExpression constant,
2257 IncDecOperator operator, 2257 IncDecOperator operator,
2258 arg) { 2258 arg) {
2259 visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_POSTFIX, 2259 visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_POSTFIX,
2260 constant: constant.getText(), operator: operator)); 2260 constant: constant.toDartText(), operator: operator));
2261 } 2261 }
2262 2262
2263 @override 2263 @override
2264 visitUnresolvedCompound( 2264 visitUnresolvedCompound(
2265 Send node, 2265 Send node,
2266 ErroneousElement element, 2266 ErroneousElement element,
2267 AssignmentOperator operator, 2267 AssignmentOperator operator,
2268 Node rhs, 2268 Node rhs,
2269 arg) { 2269 arg) {
2270 visits.add(new Visit(VisitKind.VISIT_UNRESOLVED_COMPOUND, 2270 visits.add(new Visit(VisitKind.VISIT_UNRESOLVED_COMPOUND,
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
2542 arguments: arguments)); 2542 arguments: arguments));
2543 apply(arguments, arg); 2543 apply(arguments, arg);
2544 } 2544 }
2545 2545
2546 @override 2546 @override
2547 visitConstConstructorInvoke( 2547 visitConstConstructorInvoke(
2548 NewExpression node, 2548 NewExpression node,
2549 ConstructedConstantExpression constant, 2549 ConstructedConstantExpression constant,
2550 arg) { 2550 arg) {
2551 visits.add(new Visit(VisitKind.VISIT_CONST_CONSTRUCTOR_INVOKE, 2551 visits.add(new Visit(VisitKind.VISIT_CONST_CONSTRUCTOR_INVOKE,
2552 constant: constant.getText())); 2552 constant: constant.toDartText()));
2553 super.visitConstConstructorInvoke(node, constant, arg); 2553 super.visitConstConstructorInvoke(node, constant, arg);
2554 } 2554 }
2555 2555
2556 @override 2556 @override
2557 visitBoolFromEnvironmentConstructorInvoke( 2557 visitBoolFromEnvironmentConstructorInvoke(
2558 NewExpression node, 2558 NewExpression node,
2559 BoolFromEnvironmentConstantExpression constant, 2559 BoolFromEnvironmentConstantExpression constant,
2560 arg) { 2560 arg) {
2561 visits.add(new Visit( 2561 visits.add(new Visit(
2562 VisitKind.VISIT_BOOL_FROM_ENVIRONMENT_CONSTRUCTOR_INVOKE, 2562 VisitKind.VISIT_BOOL_FROM_ENVIRONMENT_CONSTRUCTOR_INVOKE,
2563 constant: constant.getText())); 2563 constant: constant.toDartText()));
2564 super.visitBoolFromEnvironmentConstructorInvoke(node, constant, arg); 2564 super.visitBoolFromEnvironmentConstructorInvoke(node, constant, arg);
2565 } 2565 }
2566 2566
2567 @override 2567 @override
2568 visitIntFromEnvironmentConstructorInvoke( 2568 visitIntFromEnvironmentConstructorInvoke(
2569 NewExpression node, 2569 NewExpression node,
2570 IntFromEnvironmentConstantExpression constant, 2570 IntFromEnvironmentConstantExpression constant,
2571 arg) { 2571 arg) {
2572 visits.add(new Visit( 2572 visits.add(new Visit(
2573 VisitKind.VISIT_INT_FROM_ENVIRONMENT_CONSTRUCTOR_INVOKE, 2573 VisitKind.VISIT_INT_FROM_ENVIRONMENT_CONSTRUCTOR_INVOKE,
2574 constant: constant.getText())); 2574 constant: constant.toDartText()));
2575 super.visitIntFromEnvironmentConstructorInvoke(node, constant, arg); 2575 super.visitIntFromEnvironmentConstructorInvoke(node, constant, arg);
2576 } 2576 }
2577 2577
2578 @override 2578 @override
2579 visitStringFromEnvironmentConstructorInvoke( 2579 visitStringFromEnvironmentConstructorInvoke(
2580 NewExpression node, 2580 NewExpression node,
2581 StringFromEnvironmentConstantExpression constant, 2581 StringFromEnvironmentConstantExpression constant,
2582 arg) { 2582 arg) {
2583 visits.add(new Visit( 2583 visits.add(new Visit(
2584 VisitKind.VISIT_STRING_FROM_ENVIRONMENT_CONSTRUCTOR_INVOKE, 2584 VisitKind.VISIT_STRING_FROM_ENVIRONMENT_CONSTRUCTOR_INVOKE,
2585 constant: constant.getText())); 2585 constant: constant.toDartText()));
2586 super.visitStringFromEnvironmentConstructorInvoke(node, constant, arg); 2586 super.visitStringFromEnvironmentConstructorInvoke(node, constant, arg);
2587 } 2587 }
2588 2588
2589 @override 2589 @override
2590 errorNonConstantConstructorInvoke( 2590 errorNonConstantConstructorInvoke(
2591 NewExpression node, 2591 NewExpression node,
2592 Element element, 2592 Element element,
2593 DartType type, 2593 DartType type,
2594 NodeList arguments, 2594 NodeList arguments,
2595 CallStructure callStructure, 2595 CallStructure callStructure,
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
3079 visits.add(new Visit(VisitKind.VISIT_IF_NULL, left: left, right: right)); 3079 visits.add(new Visit(VisitKind.VISIT_IF_NULL, left: left, right: right));
3080 super.visitIfNull(node, left, right, arg); 3080 super.visitIfNull(node, left, right, arg);
3081 } 3081 }
3082 3082
3083 @override 3083 @override
3084 visitConstantGet( 3084 visitConstantGet(
3085 Send node, 3085 Send node,
3086 ConstantExpression constant, 3086 ConstantExpression constant,
3087 arg) { 3087 arg) {
3088 visits.add(new Visit(VisitKind.VISIT_CONSTANT_GET, 3088 visits.add(new Visit(VisitKind.VISIT_CONSTANT_GET,
3089 constant: constant.getText())); 3089 constant: constant.toDartText()));
3090 super.visitConstantGet(node, constant, arg); 3090 super.visitConstantGet(node, constant, arg);
3091 } 3091 }
3092 3092
3093 @override 3093 @override
3094 visitConstantInvoke( 3094 visitConstantInvoke(
3095 Send node, 3095 Send node,
3096 ConstantExpression constant, 3096 ConstantExpression constant,
3097 NodeList arguments, 3097 NodeList arguments,
3098 CallStructure callStructure, 3098 CallStructure callStructure,
3099 arg) { 3099 arg) {
3100 visits.add(new Visit(VisitKind.VISIT_CONSTANT_INVOKE, 3100 visits.add(new Visit(VisitKind.VISIT_CONSTANT_INVOKE,
3101 constant: constant.getText())); 3101 constant: constant.toDartText()));
3102 super.visitConstantInvoke(node, constant, arguments, callStructure, arg); 3102 super.visitConstantInvoke(node, constant, arguments, callStructure, arg);
3103 } 3103 }
3104 3104
3105 @override 3105 @override
3106 previsitDeferredAccess( 3106 previsitDeferredAccess(
3107 Send node, 3107 Send node,
3108 PrefixElement prefix, 3108 PrefixElement prefix,
3109 arg) { 3109 arg) {
3110 visits.add(new Visit(VisitKind.PREVISIT_DEFERRED_ACCESS, element: prefix)); 3110 visits.add(new Visit(VisitKind.PREVISIT_DEFERRED_ACCESS, element: prefix));
3111 } 3111 }
3112 3112
3113 @override 3113 @override
3114 visitClassTypeLiteralSetIfNull( 3114 visitClassTypeLiteralSetIfNull(
3115 Send node, 3115 Send node,
3116 ConstantExpression constant, 3116 ConstantExpression constant,
3117 Node rhs, 3117 Node rhs,
3118 arg) { 3118 arg) {
3119 visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_SET_IF_NULL, 3119 visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_SET_IF_NULL,
3120 constant: constant.getText(), rhs: rhs)); 3120 constant: constant.toDartText(), rhs: rhs));
3121 super.visitClassTypeLiteralSetIfNull(node, constant, rhs, arg); 3121 super.visitClassTypeLiteralSetIfNull(node, constant, rhs, arg);
3122 } 3122 }
3123 3123
3124 @override 3124 @override
3125 visitDynamicPropertySetIfNull( 3125 visitDynamicPropertySetIfNull(
3126 Send node, 3126 Send node,
3127 Node receiver, 3127 Node receiver,
3128 Name name, 3128 Name name,
3129 Node rhs, 3129 Node rhs,
3130 arg) { 3130 arg) {
3131 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_PROPERTY_SET_IF_NULL, 3131 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_PROPERTY_SET_IF_NULL,
3132 receiver: receiver, name: name, rhs: rhs)); 3132 receiver: receiver, name: name, rhs: rhs));
3133 super.visitDynamicPropertySetIfNull(node, receiver, name, rhs, arg); 3133 super.visitDynamicPropertySetIfNull(node, receiver, name, rhs, arg);
3134 } 3134 }
3135 3135
3136 @override 3136 @override
3137 visitDynamicTypeLiteralSetIfNull( 3137 visitDynamicTypeLiteralSetIfNull(
3138 Send node, 3138 Send node,
3139 ConstantExpression constant, 3139 ConstantExpression constant,
3140 Node rhs, 3140 Node rhs,
3141 arg) { 3141 arg) {
3142 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_SET_IF_NULL, 3142 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_SET_IF_NULL,
3143 constant: constant.getText(), rhs: rhs)); 3143 constant: constant.toDartText(), rhs: rhs));
3144 super.visitDynamicTypeLiteralSetIfNull(node, constant, rhs, arg); 3144 super.visitDynamicTypeLiteralSetIfNull(node, constant, rhs, arg);
3145 } 3145 }
3146 3146
3147 @override 3147 @override
3148 visitFinalLocalVariableSetIfNull( 3148 visitFinalLocalVariableSetIfNull(
3149 Send node, 3149 Send node,
3150 LocalVariableElement variable, 3150 LocalVariableElement variable,
3151 Node rhs, 3151 Node rhs,
3152 arg) { 3152 arg) {
3153 visits.add(new Visit(VisitKind.VISIT_FINAL_LOCAL_VARIABLE_SET_IF_NULL, 3153 visits.add(new Visit(VisitKind.VISIT_FINAL_LOCAL_VARIABLE_SET_IF_NULL,
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
3443 super.visitTypeVariableTypeLiteralSetIfNull(node, element, rhs, arg); 3443 super.visitTypeVariableTypeLiteralSetIfNull(node, element, rhs, arg);
3444 } 3444 }
3445 3445
3446 @override 3446 @override
3447 visitTypedefTypeLiteralSetIfNull( 3447 visitTypedefTypeLiteralSetIfNull(
3448 Send node, 3448 Send node,
3449 ConstantExpression constant, 3449 ConstantExpression constant,
3450 Node rhs, 3450 Node rhs,
3451 arg) { 3451 arg) {
3452 visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_SET_IF_NULL, 3452 visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_SET_IF_NULL,
3453 constant: constant.getText(), rhs: rhs)); 3453 constant: constant.toDartText(), rhs: rhs));
3454 super.visitTypedefTypeLiteralSetIfNull(node, constant, rhs, arg); 3454 super.visitTypedefTypeLiteralSetIfNull(node, constant, rhs, arg);
3455 } 3455 }
3456 3456
3457 @override 3457 @override
3458 visitUnresolvedSetIfNull( 3458 visitUnresolvedSetIfNull(
3459 Send node, 3459 Send node,
3460 Element element, 3460 Element element,
3461 Node rhs, 3461 Node rhs,
3462 arg) { 3462 arg) {
3463 visits.add(new Visit(VisitKind.VISIT_UNRESOLVED_SET_IF_NULL, 3463 visits.add(new Visit(VisitKind.VISIT_UNRESOLVED_SET_IF_NULL,
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
3628 ErroneousElement error, 3628 ErroneousElement error,
3629 Node index, 3629 Node index,
3630 Node rhs, 3630 Node rhs,
3631 arg) { 3631 arg) {
3632 visits.add(new Visit( 3632 visits.add(new Visit(
3633 VisitKind.ERROR_INVALID_SET_IF_NULL, 3633 VisitKind.ERROR_INVALID_SET_IF_NULL,
3634 index: index, rhs: rhs)); 3634 index: index, rhs: rhs));
3635 super.visitUnresolvedSuperIndexSetIfNull(node, error, index, rhs, arg); 3635 super.visitUnresolvedSuperIndexSetIfNull(node, error, index, rhs, arg);
3636 } 3636 }
3637 } 3637 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/semantic_visitor_test_decl_visitor.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698