| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.ast_test; | 8 library engine.ast_test; |
| 9 | 9 |
| 10 import 'package:analyzer/src/generated/java_core.dart'; | 10 import 'package:analyzer/src/generated/java_core.dart'; |
| (...skipping 1630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1641 } | 1641 } |
| 1642 | 1642 |
| 1643 void test_visitAssertStatement() { | 1643 void test_visitAssertStatement() { |
| 1644 _assertSource("assert (a);", AstFactory.assertStatement(AstFactory.identifie
r3("a"))); | 1644 _assertSource("assert (a);", AstFactory.assertStatement(AstFactory.identifie
r3("a"))); |
| 1645 } | 1645 } |
| 1646 | 1646 |
| 1647 void test_visitAssignmentExpression() { | 1647 void test_visitAssignmentExpression() { |
| 1648 _assertSource("a = b", AstFactory.assignmentExpression(AstFactory.identifier
3("a"), TokenType.EQ, AstFactory.identifier3("b"))); | 1648 _assertSource("a = b", AstFactory.assignmentExpression(AstFactory.identifier
3("a"), TokenType.EQ, AstFactory.identifier3("b"))); |
| 1649 } | 1649 } |
| 1650 | 1650 |
| 1651 void test_visitAwaitExpression() { |
| 1652 _assertSource("await e;", AstFactory.awaitExpression(AstFactory.identifier3(
"e"))); |
| 1653 } |
| 1654 |
| 1651 void test_visitBinaryExpression() { | 1655 void test_visitBinaryExpression() { |
| 1652 _assertSource("a + b", AstFactory.binaryExpression(AstFactory.identifier3("a
"), TokenType.PLUS, AstFactory.identifier3("b"))); | 1656 _assertSource("a + b", AstFactory.binaryExpression(AstFactory.identifier3("a
"), TokenType.PLUS, AstFactory.identifier3("b"))); |
| 1653 } | 1657 } |
| 1654 | 1658 |
| 1655 void test_visitBlock_empty() { | 1659 void test_visitBlock_empty() { |
| 1656 _assertSource("{}", AstFactory.block([])); | 1660 _assertSource("{}", AstFactory.block([])); |
| 1657 } | 1661 } |
| 1658 | 1662 |
| 1659 void test_visitBlock_nonEmpty() { | 1663 void test_visitBlock_nonEmpty() { |
| 1660 _assertSource("{break; break;}", AstFactory.block([AstFactory.breakStatement
(), AstFactory.breakStatement()])); | 1664 _assertSource("{break; break;}", AstFactory.block([AstFactory.breakStatement
(), AstFactory.breakStatement()])); |
| 1661 } | 1665 } |
| 1662 | 1666 |
| 1663 void test_visitBlockFunctionBody() { | 1667 void test_visitBlockFunctionBody_async() { |
| 1668 _assertSource("async {}", AstFactory.asyncBlockFunctionBody([])); |
| 1669 } |
| 1670 |
| 1671 void test_visitBlockFunctionBody_async_star() { |
| 1672 _assertSource("async* {}", AstFactory.asyncGeneratorBlockFunctionBody([])); |
| 1673 } |
| 1674 |
| 1675 void test_visitBlockFunctionBody_simple() { |
| 1664 _assertSource("{}", AstFactory.blockFunctionBody2([])); | 1676 _assertSource("{}", AstFactory.blockFunctionBody2([])); |
| 1665 } | 1677 } |
| 1666 | 1678 |
| 1679 void test_visitBlockFunctionBody_sync() { |
| 1680 _assertSource("sync {}", AstFactory.syncBlockFunctionBody([])); |
| 1681 } |
| 1682 |
| 1683 void test_visitBlockFunctionBody_sync_star() { |
| 1684 _assertSource("sync* {}", AstFactory.syncGeneratorBlockFunctionBody([])); |
| 1685 } |
| 1686 |
| 1667 void test_visitBooleanLiteral_false() { | 1687 void test_visitBooleanLiteral_false() { |
| 1668 _assertSource("false", AstFactory.booleanLiteral(false)); | 1688 _assertSource("false", AstFactory.booleanLiteral(false)); |
| 1669 } | 1689 } |
| 1670 | 1690 |
| 1671 void test_visitBooleanLiteral_true() { | 1691 void test_visitBooleanLiteral_true() { |
| 1672 _assertSource("true", AstFactory.booleanLiteral(true)); | 1692 _assertSource("true", AstFactory.booleanLiteral(true)); |
| 1673 } | 1693 } |
| 1674 | 1694 |
| 1675 void test_visitBreakStatement_label() { | 1695 void test_visitBreakStatement_label() { |
| 1676 _assertSource("break l;", AstFactory.breakStatement2("l")); | 1696 _assertSource("break l;", AstFactory.breakStatement2("l")); |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1975 void test_visitExportDirective_minimal() { | 1995 void test_visitExportDirective_minimal() { |
| 1976 _assertSource("export 'a.dart';", AstFactory.exportDirective2("a.dart", []))
; | 1996 _assertSource("export 'a.dart';", AstFactory.exportDirective2("a.dart", []))
; |
| 1977 } | 1997 } |
| 1978 | 1998 |
| 1979 void test_visitExportDirective_withMetadata() { | 1999 void test_visitExportDirective_withMetadata() { |
| 1980 ExportDirective directive = AstFactory.exportDirective2("a.dart", []); | 2000 ExportDirective directive = AstFactory.exportDirective2("a.dart", []); |
| 1981 directive.metadata = AstFactory.list([AstFactory.annotation(AstFactory.ident
ifier3("deprecated"))]); | 2001 directive.metadata = AstFactory.list([AstFactory.annotation(AstFactory.ident
ifier3("deprecated"))]); |
| 1982 _assertSource("@deprecated export 'a.dart';", directive); | 2002 _assertSource("@deprecated export 'a.dart';", directive); |
| 1983 } | 2003 } |
| 1984 | 2004 |
| 1985 void test_visitExpressionFunctionBody() { | 2005 void test_visitExpressionFunctionBody_async() { |
| 2006 _assertSource("async => a;", AstFactory.asyncExpressionFunctionBody(AstFacto
ry.identifier3("a"))); |
| 2007 } |
| 2008 |
| 2009 void test_visitExpressionFunctionBody_simple() { |
| 1986 _assertSource("=> a;", AstFactory.expressionFunctionBody(AstFactory.identifi
er3("a"))); | 2010 _assertSource("=> a;", AstFactory.expressionFunctionBody(AstFactory.identifi
er3("a"))); |
| 1987 } | 2011 } |
| 1988 | 2012 |
| 1989 void test_visitExpressionStatement() { | 2013 void test_visitExpressionStatement() { |
| 1990 _assertSource("a;", AstFactory.expressionStatement(AstFactory.identifier3("a
"))); | 2014 _assertSource("a;", AstFactory.expressionStatement(AstFactory.identifier3("a
"))); |
| 1991 } | 2015 } |
| 1992 | 2016 |
| 1993 void test_visitExtendsClause() { | 2017 void test_visitExtendsClause() { |
| 1994 _assertSource("extends C", AstFactory.extendsClause(AstFactory.typeName4("C"
, []))); | 2018 _assertSource("extends C", AstFactory.extendsClause(AstFactory.typeName4("C"
, []))); |
| 1995 } | 2019 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 2022 | 2046 |
| 2023 void test_visitFieldFormalParameter_type() { | 2047 void test_visitFieldFormalParameter_type() { |
| 2024 _assertSource("A this.a", AstFactory.fieldFormalParameter(null, AstFactory.t
ypeName4("A", []), "a")); | 2048 _assertSource("A this.a", AstFactory.fieldFormalParameter(null, AstFactory.t
ypeName4("A", []), "a")); |
| 2025 } | 2049 } |
| 2026 | 2050 |
| 2027 void test_visitForEachStatement_declared() { | 2051 void test_visitForEachStatement_declared() { |
| 2028 _assertSource("for (a in b) {}", AstFactory.forEachStatement(AstFactory.decl
aredIdentifier3("a"), AstFactory.identifier3("b"), AstFactory.block([]))); | 2052 _assertSource("for (a in b) {}", AstFactory.forEachStatement(AstFactory.decl
aredIdentifier3("a"), AstFactory.identifier3("b"), AstFactory.block([]))); |
| 2029 } | 2053 } |
| 2030 | 2054 |
| 2031 void test_visitForEachStatement_variable() { | 2055 void test_visitForEachStatement_variable() { |
| 2032 _assertSource("for (a in b) {}", new ForEachStatement.con2(TokenFactory.toke
nFromKeyword(Keyword.FOR), TokenFactory.tokenFromType(TokenType.OPEN_PAREN), Ast
Factory.identifier3("a"), TokenFactory.tokenFromKeyword(Keyword.IN), AstFactory.
identifier3("b"), TokenFactory.tokenFromType(TokenType.CLOSE_PAREN), AstFactory.
block([]))); | 2056 _assertSource("for (a in b) {}", new ForEachStatement.con2(null, TokenFactor
y.tokenFromKeyword(Keyword.FOR), TokenFactory.tokenFromType(TokenType.OPEN_PAREN
), AstFactory.identifier3("a"), TokenFactory.tokenFromKeyword(Keyword.IN), AstFa
ctory.identifier3("b"), TokenFactory.tokenFromType(TokenType.CLOSE_PAREN), AstFa
ctory.block([]))); |
| 2057 } |
| 2058 |
| 2059 void test_visitForEachStatement_variable_await() { |
| 2060 _assertSource("await for (a in b) {}", new ForEachStatement.con2(TokenFactor
y.tokenFromString("await"), TokenFactory.tokenFromKeyword(Keyword.FOR), TokenFac
tory.tokenFromType(TokenType.OPEN_PAREN), AstFactory.identifier3("a"), TokenFact
ory.tokenFromKeyword(Keyword.IN), AstFactory.identifier3("b"), TokenFactory.toke
nFromType(TokenType.CLOSE_PAREN), AstFactory.block([]))); |
| 2033 } | 2061 } |
| 2034 | 2062 |
| 2035 void test_visitFormalParameterList_empty() { | 2063 void test_visitFormalParameterList_empty() { |
| 2036 _assertSource("()", AstFactory.formalParameterList([])); | 2064 _assertSource("()", AstFactory.formalParameterList([])); |
| 2037 } | 2065 } |
| 2038 | 2066 |
| 2039 void test_visitFormalParameterList_n() { | 2067 void test_visitFormalParameterList_n() { |
| 2040 _assertSource("({a : 0})", AstFactory.formalParameterList([AstFactory.namedF
ormalParameter(AstFactory.simpleFormalParameter3("a"), AstFactory.integer(0))]))
; | 2068 _assertSource("({a : 0})", AstFactory.formalParameterList([AstFactory.namedF
ormalParameter(AstFactory.simpleFormalParameter3("a"), AstFactory.integer(0))]))
; |
| 2041 } | 2069 } |
| 2042 | 2070 |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2783 _assertSource("with A, B, C", AstFactory.withClause([ | 2811 _assertSource("with A, B, C", AstFactory.withClause([ |
| 2784 AstFactory.typeName4("A", []), | 2812 AstFactory.typeName4("A", []), |
| 2785 AstFactory.typeName4("B", []), | 2813 AstFactory.typeName4("B", []), |
| 2786 AstFactory.typeName4("C", [])])); | 2814 AstFactory.typeName4("C", [])])); |
| 2787 } | 2815 } |
| 2788 | 2816 |
| 2789 void test_visitWithClause_single() { | 2817 void test_visitWithClause_single() { |
| 2790 _assertSource("with A", AstFactory.withClause([AstFactory.typeName4("A", [])
])); | 2818 _assertSource("with A", AstFactory.withClause([AstFactory.typeName4("A", [])
])); |
| 2791 } | 2819 } |
| 2792 | 2820 |
| 2821 void test_visitYieldStatement() { |
| 2822 _assertSource("yield e;", AstFactory.yieldStatement(AstFactory.identifier3("
e"))); |
| 2823 } |
| 2824 |
| 2825 void test_visitYieldStatement_each() { |
| 2826 _assertSource("yield* e;", AstFactory.yieldEachStatement(AstFactory.identifi
er3("e"))); |
| 2827 } |
| 2828 |
| 2793 /** | 2829 /** |
| 2794 * Assert that a `ToSourceVisitor` will produce the expected source when visit
ing the given | 2830 * Assert that a `ToSourceVisitor` will produce the expected source when visit
ing the given |
| 2795 * node. | 2831 * node. |
| 2796 * | 2832 * |
| 2797 * @param expectedSource the source string that the visitor is expected to pro
duce | 2833 * @param expectedSource the source string that the visitor is expected to pro
duce |
| 2798 * @param node the AST node being visited to produce the actual source | 2834 * @param node the AST node being visited to produce the actual source |
| 2799 * @throws AFE if the visitor does not produce the expected source for the giv
en node | 2835 * @throws AFE if the visitor does not produce the expected source for the giv
en node |
| 2800 */ | 2836 */ |
| 2801 void _assertSource(String expectedSource, AstNode node) { | 2837 void _assertSource(String expectedSource, AstNode node) { |
| 2802 PrintStringWriter writer = new PrintStringWriter(); | 2838 PrintStringWriter writer = new PrintStringWriter(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 2827 runJUnitTest(__test, __test.test_visitAsExpression); | 2863 runJUnitTest(__test, __test.test_visitAsExpression); |
| 2828 }); | 2864 }); |
| 2829 _ut.test('test_visitAssertStatement', () { | 2865 _ut.test('test_visitAssertStatement', () { |
| 2830 final __test = new ToSourceVisitorTest(); | 2866 final __test = new ToSourceVisitorTest(); |
| 2831 runJUnitTest(__test, __test.test_visitAssertStatement); | 2867 runJUnitTest(__test, __test.test_visitAssertStatement); |
| 2832 }); | 2868 }); |
| 2833 _ut.test('test_visitAssignmentExpression', () { | 2869 _ut.test('test_visitAssignmentExpression', () { |
| 2834 final __test = new ToSourceVisitorTest(); | 2870 final __test = new ToSourceVisitorTest(); |
| 2835 runJUnitTest(__test, __test.test_visitAssignmentExpression); | 2871 runJUnitTest(__test, __test.test_visitAssignmentExpression); |
| 2836 }); | 2872 }); |
| 2873 _ut.test('test_visitAwaitExpression', () { |
| 2874 final __test = new ToSourceVisitorTest(); |
| 2875 runJUnitTest(__test, __test.test_visitAwaitExpression); |
| 2876 }); |
| 2837 _ut.test('test_visitBinaryExpression', () { | 2877 _ut.test('test_visitBinaryExpression', () { |
| 2838 final __test = new ToSourceVisitorTest(); | 2878 final __test = new ToSourceVisitorTest(); |
| 2839 runJUnitTest(__test, __test.test_visitBinaryExpression); | 2879 runJUnitTest(__test, __test.test_visitBinaryExpression); |
| 2840 }); | 2880 }); |
| 2841 _ut.test('test_visitBlockFunctionBody', () { | 2881 _ut.test('test_visitBlockFunctionBody_async', () { |
| 2842 final __test = new ToSourceVisitorTest(); | 2882 final __test = new ToSourceVisitorTest(); |
| 2843 runJUnitTest(__test, __test.test_visitBlockFunctionBody); | 2883 runJUnitTest(__test, __test.test_visitBlockFunctionBody_async); |
| 2884 }); |
| 2885 _ut.test('test_visitBlockFunctionBody_async_star', () { |
| 2886 final __test = new ToSourceVisitorTest(); |
| 2887 runJUnitTest(__test, __test.test_visitBlockFunctionBody_async_star); |
| 2888 }); |
| 2889 _ut.test('test_visitBlockFunctionBody_simple', () { |
| 2890 final __test = new ToSourceVisitorTest(); |
| 2891 runJUnitTest(__test, __test.test_visitBlockFunctionBody_simple); |
| 2892 }); |
| 2893 _ut.test('test_visitBlockFunctionBody_sync', () { |
| 2894 final __test = new ToSourceVisitorTest(); |
| 2895 runJUnitTest(__test, __test.test_visitBlockFunctionBody_sync); |
| 2896 }); |
| 2897 _ut.test('test_visitBlockFunctionBody_sync_star', () { |
| 2898 final __test = new ToSourceVisitorTest(); |
| 2899 runJUnitTest(__test, __test.test_visitBlockFunctionBody_sync_star); |
| 2844 }); | 2900 }); |
| 2845 _ut.test('test_visitBlock_empty', () { | 2901 _ut.test('test_visitBlock_empty', () { |
| 2846 final __test = new ToSourceVisitorTest(); | 2902 final __test = new ToSourceVisitorTest(); |
| 2847 runJUnitTest(__test, __test.test_visitBlock_empty); | 2903 runJUnitTest(__test, __test.test_visitBlock_empty); |
| 2848 }); | 2904 }); |
| 2849 _ut.test('test_visitBlock_nonEmpty', () { | 2905 _ut.test('test_visitBlock_nonEmpty', () { |
| 2850 final __test = new ToSourceVisitorTest(); | 2906 final __test = new ToSourceVisitorTest(); |
| 2851 runJUnitTest(__test, __test.test_visitBlock_nonEmpty); | 2907 runJUnitTest(__test, __test.test_visitBlock_nonEmpty); |
| 2852 }); | 2908 }); |
| 2853 _ut.test('test_visitBooleanLiteral_false', () { | 2909 _ut.test('test_visitBooleanLiteral_false', () { |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3139 runJUnitTest(__test, __test.test_visitExportDirective_combinators); | 3195 runJUnitTest(__test, __test.test_visitExportDirective_combinators); |
| 3140 }); | 3196 }); |
| 3141 _ut.test('test_visitExportDirective_minimal', () { | 3197 _ut.test('test_visitExportDirective_minimal', () { |
| 3142 final __test = new ToSourceVisitorTest(); | 3198 final __test = new ToSourceVisitorTest(); |
| 3143 runJUnitTest(__test, __test.test_visitExportDirective_minimal); | 3199 runJUnitTest(__test, __test.test_visitExportDirective_minimal); |
| 3144 }); | 3200 }); |
| 3145 _ut.test('test_visitExportDirective_withMetadata', () { | 3201 _ut.test('test_visitExportDirective_withMetadata', () { |
| 3146 final __test = new ToSourceVisitorTest(); | 3202 final __test = new ToSourceVisitorTest(); |
| 3147 runJUnitTest(__test, __test.test_visitExportDirective_withMetadata); | 3203 runJUnitTest(__test, __test.test_visitExportDirective_withMetadata); |
| 3148 }); | 3204 }); |
| 3149 _ut.test('test_visitExpressionFunctionBody', () { | 3205 _ut.test('test_visitExpressionFunctionBody_async', () { |
| 3150 final __test = new ToSourceVisitorTest(); | 3206 final __test = new ToSourceVisitorTest(); |
| 3151 runJUnitTest(__test, __test.test_visitExpressionFunctionBody); | 3207 runJUnitTest(__test, __test.test_visitExpressionFunctionBody_async); |
| 3208 }); |
| 3209 _ut.test('test_visitExpressionFunctionBody_simple', () { |
| 3210 final __test = new ToSourceVisitorTest(); |
| 3211 runJUnitTest(__test, __test.test_visitExpressionFunctionBody_simple); |
| 3152 }); | 3212 }); |
| 3153 _ut.test('test_visitExpressionStatement', () { | 3213 _ut.test('test_visitExpressionStatement', () { |
| 3154 final __test = new ToSourceVisitorTest(); | 3214 final __test = new ToSourceVisitorTest(); |
| 3155 runJUnitTest(__test, __test.test_visitExpressionStatement); | 3215 runJUnitTest(__test, __test.test_visitExpressionStatement); |
| 3156 }); | 3216 }); |
| 3157 _ut.test('test_visitExtendsClause', () { | 3217 _ut.test('test_visitExtendsClause', () { |
| 3158 final __test = new ToSourceVisitorTest(); | 3218 final __test = new ToSourceVisitorTest(); |
| 3159 runJUnitTest(__test, __test.test_visitExtendsClause); | 3219 runJUnitTest(__test, __test.test_visitExtendsClause); |
| 3160 }); | 3220 }); |
| 3161 _ut.test('test_visitFieldDeclaration_instance', () { | 3221 _ut.test('test_visitFieldDeclaration_instance', () { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 3187 runJUnitTest(__test, __test.test_visitFieldFormalParameter_type); | 3247 runJUnitTest(__test, __test.test_visitFieldFormalParameter_type); |
| 3188 }); | 3248 }); |
| 3189 _ut.test('test_visitForEachStatement_declared', () { | 3249 _ut.test('test_visitForEachStatement_declared', () { |
| 3190 final __test = new ToSourceVisitorTest(); | 3250 final __test = new ToSourceVisitorTest(); |
| 3191 runJUnitTest(__test, __test.test_visitForEachStatement_declared); | 3251 runJUnitTest(__test, __test.test_visitForEachStatement_declared); |
| 3192 }); | 3252 }); |
| 3193 _ut.test('test_visitForEachStatement_variable', () { | 3253 _ut.test('test_visitForEachStatement_variable', () { |
| 3194 final __test = new ToSourceVisitorTest(); | 3254 final __test = new ToSourceVisitorTest(); |
| 3195 runJUnitTest(__test, __test.test_visitForEachStatement_variable); | 3255 runJUnitTest(__test, __test.test_visitForEachStatement_variable); |
| 3196 }); | 3256 }); |
| 3257 _ut.test('test_visitForEachStatement_variable_await', () { |
| 3258 final __test = new ToSourceVisitorTest(); |
| 3259 runJUnitTest(__test, __test.test_visitForEachStatement_variable_await); |
| 3260 }); |
| 3197 _ut.test('test_visitForStatement_c', () { | 3261 _ut.test('test_visitForStatement_c', () { |
| 3198 final __test = new ToSourceVisitorTest(); | 3262 final __test = new ToSourceVisitorTest(); |
| 3199 runJUnitTest(__test, __test.test_visitForStatement_c); | 3263 runJUnitTest(__test, __test.test_visitForStatement_c); |
| 3200 }); | 3264 }); |
| 3201 _ut.test('test_visitForStatement_cu', () { | 3265 _ut.test('test_visitForStatement_cu', () { |
| 3202 final __test = new ToSourceVisitorTest(); | 3266 final __test = new ToSourceVisitorTest(); |
| 3203 runJUnitTest(__test, __test.test_visitForStatement_cu); | 3267 runJUnitTest(__test, __test.test_visitForStatement_cu); |
| 3204 }); | 3268 }); |
| 3205 _ut.test('test_visitForStatement_e', () { | 3269 _ut.test('test_visitForStatement_e', () { |
| 3206 final __test = new ToSourceVisitorTest(); | 3270 final __test = new ToSourceVisitorTest(); |
| (...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3851 runJUnitTest(__test, __test.test_visitWhileStatement); | 3915 runJUnitTest(__test, __test.test_visitWhileStatement); |
| 3852 }); | 3916 }); |
| 3853 _ut.test('test_visitWithClause_multiple', () { | 3917 _ut.test('test_visitWithClause_multiple', () { |
| 3854 final __test = new ToSourceVisitorTest(); | 3918 final __test = new ToSourceVisitorTest(); |
| 3855 runJUnitTest(__test, __test.test_visitWithClause_multiple); | 3919 runJUnitTest(__test, __test.test_visitWithClause_multiple); |
| 3856 }); | 3920 }); |
| 3857 _ut.test('test_visitWithClause_single', () { | 3921 _ut.test('test_visitWithClause_single', () { |
| 3858 final __test = new ToSourceVisitorTest(); | 3922 final __test = new ToSourceVisitorTest(); |
| 3859 runJUnitTest(__test, __test.test_visitWithClause_single); | 3923 runJUnitTest(__test, __test.test_visitWithClause_single); |
| 3860 }); | 3924 }); |
| 3925 _ut.test('test_visitYieldStatement', () { |
| 3926 final __test = new ToSourceVisitorTest(); |
| 3927 runJUnitTest(__test, __test.test_visitYieldStatement); |
| 3928 }); |
| 3929 _ut.test('test_visitYieldStatement_each', () { |
| 3930 final __test = new ToSourceVisitorTest(); |
| 3931 runJUnitTest(__test, __test.test_visitYieldStatement_each); |
| 3932 }); |
| 3861 }); | 3933 }); |
| 3862 } | 3934 } |
| 3863 } | 3935 } |
| 3864 | 3936 |
| 3865 class VariableDeclarationTest extends ParserTestCase { | 3937 class VariableDeclarationTest extends ParserTestCase { |
| 3866 void test_getDocumentationComment_onGrandParent() { | 3938 void test_getDocumentationComment_onGrandParent() { |
| 3867 VariableDeclaration varDecl = AstFactory.variableDeclaration("a"); | 3939 VariableDeclaration varDecl = AstFactory.variableDeclaration("a"); |
| 3868 TopLevelVariableDeclaration decl = AstFactory.topLevelVariableDeclaration2(K
eyword.VAR, [varDecl]); | 3940 TopLevelVariableDeclaration decl = AstFactory.topLevelVariableDeclaration2(K
eyword.VAR, [varDecl]); |
| 3869 Comment comment = Comment.createDocumentationComment(new List<Token>(0)); | 3941 Comment comment = Comment.createDocumentationComment(new List<Token>(0)); |
| 3870 JUnitTestCase.assertNull(varDecl.documentationComment); | 3942 JUnitTestCase.assertNull(varDecl.documentationComment); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3921 ToSourceVisitorTest.dartSuite(); | 3993 ToSourceVisitorTest.dartSuite(); |
| 3922 BreadthFirstVisitorTest.dartSuite(); | 3994 BreadthFirstVisitorTest.dartSuite(); |
| 3923 ClassDeclarationTest.dartSuite(); | 3995 ClassDeclarationTest.dartSuite(); |
| 3924 ClassTypeAliasTest.dartSuite(); | 3996 ClassTypeAliasTest.dartSuite(); |
| 3925 IndexExpressionTest.dartSuite(); | 3997 IndexExpressionTest.dartSuite(); |
| 3926 NodeListTest.dartSuite(); | 3998 NodeListTest.dartSuite(); |
| 3927 SimpleIdentifierTest.dartSuite(); | 3999 SimpleIdentifierTest.dartSuite(); |
| 3928 SimpleStringLiteralTest.dartSuite(); | 4000 SimpleStringLiteralTest.dartSuite(); |
| 3929 VariableDeclarationTest.dartSuite(); | 4001 VariableDeclarationTest.dartSuite(); |
| 3930 } | 4002 } |
| OLD | NEW |