| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 * second is places where a shorter name seemed unambiguous and easier to read,
such as using | 68 * second is places where a shorter name seemed unambiguous and easier to read,
such as using |
| 69 * 'identifier' rather than 'prefixedIdentifier', or 'integer' rather than 'inte
gerLiteral'. | 69 * 'identifier' rather than 'prefixedIdentifier', or 'integer' rather than 'inte
gerLiteral'. |
| 70 */ | 70 */ |
| 71 class AstFactory { | 71 class AstFactory { |
| 72 static AdjacentStrings adjacentStrings(List<StringLiteral> strings) => new Adj
acentStrings(list(strings)); | 72 static AdjacentStrings adjacentStrings(List<StringLiteral> strings) => new Adj
acentStrings(list(strings)); |
| 73 | 73 |
| 74 static Annotation annotation(Identifier name) => new Annotation(TokenFactory.t
okenFromType(TokenType.AT), name, null, null, null); | 74 static Annotation annotation(Identifier name) => new Annotation(TokenFactory.t
okenFromType(TokenType.AT), name, null, null, null); |
| 75 | 75 |
| 76 static Annotation annotation2(Identifier name, SimpleIdentifier constructorNam
e, ArgumentList arguments) => new Annotation(TokenFactory.tokenFromType(TokenTyp
e.AT), name, TokenFactory.tokenFromType(TokenType.PERIOD), constructorName, argu
ments); | 76 static Annotation annotation2(Identifier name, SimpleIdentifier constructorNam
e, ArgumentList arguments) => new Annotation(TokenFactory.tokenFromType(TokenTyp
e.AT), name, TokenFactory.tokenFromType(TokenType.PERIOD), constructorName, argu
ments); |
| 77 | 77 |
| 78 static ArgumentDefinitionTest argumentDefinitionTest(String identifier) => new
ArgumentDefinitionTest(TokenFactory.tokenFromType(TokenType.QUESTION), identifi
er3(identifier)); | |
| 79 | |
| 80 static ArgumentList argumentList(List<Expression> arguments) => new ArgumentLi
st(TokenFactory.tokenFromType(TokenType.OPEN_PAREN), list(arguments), TokenFacto
ry.tokenFromType(TokenType.CLOSE_PAREN)); | 78 static ArgumentList argumentList(List<Expression> arguments) => new ArgumentLi
st(TokenFactory.tokenFromType(TokenType.OPEN_PAREN), list(arguments), TokenFacto
ry.tokenFromType(TokenType.CLOSE_PAREN)); |
| 81 | 79 |
| 82 static AsExpression asExpression(Expression expression, TypeName type) => new
AsExpression(expression, TokenFactory.tokenFromKeyword(Keyword.AS), type); | 80 static AsExpression asExpression(Expression expression, TypeName type) => new
AsExpression(expression, TokenFactory.tokenFromKeyword(Keyword.AS), type); |
| 83 | 81 |
| 84 static AssertStatement assertStatement(Expression condition) => new AssertStat
ement(TokenFactory.tokenFromKeyword(Keyword.ASSERT), TokenFactory.tokenFromType(
TokenType.OPEN_PAREN), condition, TokenFactory.tokenFromType(TokenType.CLOSE_PAR
EN), TokenFactory.tokenFromType(TokenType.SEMICOLON)); | 82 static AssertStatement assertStatement(Expression condition) => new AssertStat
ement(TokenFactory.tokenFromKeyword(Keyword.ASSERT), TokenFactory.tokenFromType(
TokenType.OPEN_PAREN), condition, TokenFactory.tokenFromType(TokenType.CLOSE_PAR
EN), TokenFactory.tokenFromType(TokenType.SEMICOLON)); |
| 85 | 83 |
| 86 static AssignmentExpression assignmentExpression(Expression leftHandSide, Toke
nType operator, Expression rightHandSide) => new AssignmentExpression(leftHandSi
de, TokenFactory.tokenFromType(operator), rightHandSide); | 84 static AssignmentExpression assignmentExpression(Expression leftHandSide, Toke
nType operator, Expression rightHandSide) => new AssignmentExpression(leftHandSi
de, TokenFactory.tokenFromType(operator), rightHandSide); |
| 87 | 85 |
| 88 static BinaryExpression binaryExpression(Expression leftOperand, TokenType ope
rator, Expression rightOperand) => new BinaryExpression(leftOperand, TokenFactor
y.tokenFromType(operator), rightOperand); | 86 static BinaryExpression binaryExpression(Expression leftOperand, TokenType ope
rator, Expression rightOperand) => new BinaryExpression(leftOperand, TokenFactor
y.tokenFromType(operator), rightOperand); |
| 89 | 87 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 static PrefixedIdentifier identifier4(String prefix, SimpleIdentifier identifi
er) => new PrefixedIdentifier(identifier3(prefix), TokenFactory.tokenFromType(To
kenType.PERIOD), identifier); | 221 static PrefixedIdentifier identifier4(String prefix, SimpleIdentifier identifi
er) => new PrefixedIdentifier(identifier3(prefix), TokenFactory.tokenFromType(To
kenType.PERIOD), identifier); |
| 224 | 222 |
| 225 static PrefixedIdentifier identifier5(String prefix, String identifier) => new
PrefixedIdentifier(identifier3(prefix), TokenFactory.tokenFromType(TokenType.PE
RIOD), identifier3(identifier)); | 223 static PrefixedIdentifier identifier5(String prefix, String identifier) => new
PrefixedIdentifier(identifier3(prefix), TokenFactory.tokenFromType(TokenType.PE
RIOD), identifier3(identifier)); |
| 226 | 224 |
| 227 static IfStatement ifStatement(Expression condition, Statement thenStatement)
=> ifStatement2(condition, thenStatement, null); | 225 static IfStatement ifStatement(Expression condition, Statement thenStatement)
=> ifStatement2(condition, thenStatement, null); |
| 228 | 226 |
| 229 static IfStatement ifStatement2(Expression condition, Statement thenStatement,
Statement elseStatement) => new IfStatement(TokenFactory.tokenFromKeyword(Keywo
rd.IF), TokenFactory.tokenFromType(TokenType.OPEN_PAREN), condition, TokenFactor
y.tokenFromType(TokenType.CLOSE_PAREN), thenStatement, elseStatement == null ? n
ull : TokenFactory.tokenFromKeyword(Keyword.ELSE), elseStatement); | 227 static IfStatement ifStatement2(Expression condition, Statement thenStatement,
Statement elseStatement) => new IfStatement(TokenFactory.tokenFromKeyword(Keywo
rd.IF), TokenFactory.tokenFromType(TokenType.OPEN_PAREN), condition, TokenFactor
y.tokenFromType(TokenType.CLOSE_PAREN), thenStatement, elseStatement == null ? n
ull : TokenFactory.tokenFromKeyword(Keyword.ELSE), elseStatement); |
| 230 | 228 |
| 231 static ImplementsClause implementsClause(List<TypeName> types) => new Implemen
tsClause(TokenFactory.tokenFromKeyword(Keyword.IMPLEMENTS), list(types)); | 229 static ImplementsClause implementsClause(List<TypeName> types) => new Implemen
tsClause(TokenFactory.tokenFromKeyword(Keyword.IMPLEMENTS), list(types)); |
| 232 | 230 |
| 233 static ImportDirective importDirective(List<Annotation> metadata, String uri,
String prefix, List<Combinator> combinators) => new ImportDirective(null, metada
ta, TokenFactory.tokenFromKeyword(Keyword.IMPORT), string2(uri), null, prefix ==
null ? null : TokenFactory.tokenFromKeyword(Keyword.AS), prefix == null ? null
: identifier3(prefix), list(combinators), TokenFactory.tokenFromType(TokenType.S
EMICOLON)); | 231 static ImportDirective importDirective(List<Annotation> metadata, String uri,
bool isDeferred, String prefix, List<Combinator> combinators) => new ImportDirec
tive(null, metadata, TokenFactory.tokenFromKeyword(Keyword.IMPORT), string2(uri)
, !isDeferred ? null : TokenFactory.tokenFromKeyword(Keyword.DEFERRED), prefix =
= null ? null : TokenFactory.tokenFromKeyword(Keyword.AS), prefix == null ? null
: identifier3(prefix), list(combinators), TokenFactory.tokenFromType(TokenType.
SEMICOLON)); |
| 234 | 232 |
| 235 static ImportDirective importDirective2(String uri, String prefix, List<Combin
ator> combinators) => importDirective(new List<Annotation>(), uri, prefix, combi
nators); | 233 static ImportDirective importDirective2(String uri, bool isDeferred, String pr
efix, List<Combinator> combinators) => importDirective(new List<Annotation>(), u
ri, isDeferred, prefix, combinators); |
| 234 |
| 235 static ImportDirective importDirective3(String uri, String prefix, List<Combin
ator> combinators) => importDirective(new List<Annotation>(), uri, false, prefix
, combinators); |
| 236 | 236 |
| 237 static IndexExpression indexExpression(Expression array, Expression index) =>
new IndexExpression.forTarget(array, TokenFactory.tokenFromType(TokenType.OPEN_S
QUARE_BRACKET), index, TokenFactory.tokenFromType(TokenType.CLOSE_SQUARE_BRACKET
)); | 237 static IndexExpression indexExpression(Expression array, Expression index) =>
new IndexExpression.forTarget(array, TokenFactory.tokenFromType(TokenType.OPEN_S
QUARE_BRACKET), index, TokenFactory.tokenFromType(TokenType.CLOSE_SQUARE_BRACKET
)); |
| 238 | 238 |
| 239 static InstanceCreationExpression instanceCreationExpression(Keyword keyword,
ConstructorName name, List<Expression> arguments) => new InstanceCreationExpress
ion(keyword == null ? null : TokenFactory.tokenFromKeyword(keyword), name, argum
entList(arguments)); | 239 static InstanceCreationExpression instanceCreationExpression(Keyword keyword,
ConstructorName name, List<Expression> arguments) => new InstanceCreationExpress
ion(keyword == null ? null : TokenFactory.tokenFromKeyword(keyword), name, argum
entList(arguments)); |
| 240 | 240 |
| 241 static InstanceCreationExpression instanceCreationExpression2(Keyword keyword,
TypeName type, List<Expression> arguments) => instanceCreationExpression3(keywo
rd, type, null, arguments); | 241 static InstanceCreationExpression instanceCreationExpression2(Keyword keyword,
TypeName type, List<Expression> arguments) => instanceCreationExpression3(keywo
rd, type, null, arguments); |
| 242 | 242 |
| 243 static InstanceCreationExpression instanceCreationExpression3(Keyword keyword,
TypeName type, String identifier, List<Expression> arguments) => instanceCreati
onExpression(keyword, new ConstructorName(type, identifier == null ? null : Toke
nFactory.tokenFromType(TokenType.PERIOD), identifier == null ? null : identifier
3(identifier)), arguments); | 243 static InstanceCreationExpression instanceCreationExpression3(Keyword keyword,
TypeName type, String identifier, List<Expression> arguments) => instanceCreati
onExpression(keyword, new ConstructorName(type, identifier == null ? null : Toke
nFactory.tokenFromType(TokenType.PERIOD), identifier == null ? null : identifier
3(identifier)), arguments); |
| 244 | 244 |
| 245 static IntegerLiteral integer(int value) => new IntegerLiteral(TokenFactory.to
kenFromTypeAndString(TokenType.INT, value.toString()), value); | 245 static IntegerLiteral integer(int value) => new IntegerLiteral(TokenFactory.to
kenFromTypeAndString(TokenType.INT, value.toString()), value); |
| (...skipping 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1623 }); | 1623 }); |
| 1624 _ut.test('test_searchWithin_offsetBeforeNode', () { | 1624 _ut.test('test_searchWithin_offsetBeforeNode', () { |
| 1625 final __test = new NodeLocatorTest(); | 1625 final __test = new NodeLocatorTest(); |
| 1626 runJUnitTest(__test, __test.test_searchWithin_offsetBeforeNode); | 1626 runJUnitTest(__test, __test.test_searchWithin_offsetBeforeNode); |
| 1627 }); | 1627 }); |
| 1628 }); | 1628 }); |
| 1629 } | 1629 } |
| 1630 } | 1630 } |
| 1631 | 1631 |
| 1632 class SimpleIdentifierTest extends ParserTestCase { | 1632 class SimpleIdentifierTest extends ParserTestCase { |
| 1633 void test_inDeclarationContext_argumentDefinition() { | |
| 1634 SimpleIdentifier identifier = AstFactory.argumentDefinitionTest("p").identif
ier; | |
| 1635 JUnitTestCase.assertFalse(identifier.inDeclarationContext()); | |
| 1636 } | |
| 1637 | |
| 1638 void test_inDeclarationContext_catch_exception() { | 1633 void test_inDeclarationContext_catch_exception() { |
| 1639 SimpleIdentifier identifier = AstFactory.catchClause("e", []).exceptionParam
eter; | 1634 SimpleIdentifier identifier = AstFactory.catchClause("e", []).exceptionParam
eter; |
| 1640 JUnitTestCase.assertTrue(identifier.inDeclarationContext()); | 1635 JUnitTestCase.assertTrue(identifier.inDeclarationContext()); |
| 1641 } | 1636 } |
| 1642 | 1637 |
| 1643 void test_inDeclarationContext_catch_stack() { | 1638 void test_inDeclarationContext_catch_stack() { |
| 1644 SimpleIdentifier identifier = AstFactory.catchClause2("e", "s", []).stackTra
ceParameter; | 1639 SimpleIdentifier identifier = AstFactory.catchClause2("e", "s", []).stackTra
ceParameter; |
| 1645 JUnitTestCase.assertTrue(identifier.inDeclarationContext()); | 1640 JUnitTestCase.assertTrue(identifier.inDeclarationContext()); |
| 1646 } | 1641 } |
| 1647 | 1642 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1815 AstNode parent = identifier.parent; | 1810 AstNode parent = identifier.parent; |
| 1816 while (parent != null) { | 1811 while (parent != null) { |
| 1817 child = parent; | 1812 child = parent; |
| 1818 parent = parent.parent; | 1813 parent = parent.parent; |
| 1819 } | 1814 } |
| 1820 return child; | 1815 return child; |
| 1821 } | 1816 } |
| 1822 | 1817 |
| 1823 static dartSuite() { | 1818 static dartSuite() { |
| 1824 _ut.group('SimpleIdentifierTest', () { | 1819 _ut.group('SimpleIdentifierTest', () { |
| 1825 _ut.test('test_inDeclarationContext_argumentDefinition', () { | |
| 1826 final __test = new SimpleIdentifierTest(); | |
| 1827 runJUnitTest(__test, __test.test_inDeclarationContext_argumentDefinition
); | |
| 1828 }); | |
| 1829 _ut.test('test_inDeclarationContext_catch_exception', () { | 1820 _ut.test('test_inDeclarationContext_catch_exception', () { |
| 1830 final __test = new SimpleIdentifierTest(); | 1821 final __test = new SimpleIdentifierTest(); |
| 1831 runJUnitTest(__test, __test.test_inDeclarationContext_catch_exception); | 1822 runJUnitTest(__test, __test.test_inDeclarationContext_catch_exception); |
| 1832 }); | 1823 }); |
| 1833 _ut.test('test_inDeclarationContext_catch_stack', () { | 1824 _ut.test('test_inDeclarationContext_catch_stack', () { |
| 1834 final __test = new SimpleIdentifierTest(); | 1825 final __test = new SimpleIdentifierTest(); |
| 1835 runJUnitTest(__test, __test.test_inDeclarationContext_catch_stack); | 1826 runJUnitTest(__test, __test.test_inDeclarationContext_catch_stack); |
| 1836 }); | 1827 }); |
| 1837 _ut.test('test_inDeclarationContext_classDeclaration', () { | 1828 _ut.test('test_inDeclarationContext_classDeclaration', () { |
| 1838 final __test = new SimpleIdentifierTest(); | 1829 final __test = new SimpleIdentifierTest(); |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1977 } | 1968 } |
| 1978 | 1969 |
| 1979 void test_visitAnnotation_constant() { | 1970 void test_visitAnnotation_constant() { |
| 1980 _assertSource("@A", AstFactory.annotation(AstFactory.identifier3("A"))); | 1971 _assertSource("@A", AstFactory.annotation(AstFactory.identifier3("A"))); |
| 1981 } | 1972 } |
| 1982 | 1973 |
| 1983 void test_visitAnnotation_constructor() { | 1974 void test_visitAnnotation_constructor() { |
| 1984 _assertSource("@A.c()", AstFactory.annotation2(AstFactory.identifier3("A"),
AstFactory.identifier3("c"), AstFactory.argumentList([]))); | 1975 _assertSource("@A.c()", AstFactory.annotation2(AstFactory.identifier3("A"),
AstFactory.identifier3("c"), AstFactory.argumentList([]))); |
| 1985 } | 1976 } |
| 1986 | 1977 |
| 1987 void test_visitArgumentDefinitionTest() { | |
| 1988 _assertSource("?a", AstFactory.argumentDefinitionTest("a")); | |
| 1989 } | |
| 1990 | |
| 1991 void test_visitArgumentList() { | 1978 void test_visitArgumentList() { |
| 1992 _assertSource("(a, b)", AstFactory.argumentList([AstFactory.identifier3("a")
, AstFactory.identifier3("b")])); | 1979 _assertSource("(a, b)", AstFactory.argumentList([AstFactory.identifier3("a")
, AstFactory.identifier3("b")])); |
| 1993 } | 1980 } |
| 1994 | 1981 |
| 1995 void test_visitAsExpression() { | 1982 void test_visitAsExpression() { |
| 1996 _assertSource("e as T", AstFactory.asExpression(AstFactory.identifier3("e"),
AstFactory.typeName4("T", []))); | 1983 _assertSource("e as T", AstFactory.asExpression(AstFactory.identifier3("e"),
AstFactory.typeName4("T", []))); |
| 1997 } | 1984 } |
| 1998 | 1985 |
| 1999 void test_visitAssertStatement() { | 1986 void test_visitAssertStatement() { |
| 2000 _assertSource("assert (a);", AstFactory.assertStatement(AstFactory.identifie
r3("a"))); | 1987 _assertSource("assert (a);", AstFactory.assertStatement(AstFactory.identifie
r3("a"))); |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2586 _assertSource("implements A, B", AstFactory.implementsClause([ | 2573 _assertSource("implements A, B", AstFactory.implementsClause([ |
| 2587 AstFactory.typeName4("A", []), | 2574 AstFactory.typeName4("A", []), |
| 2588 AstFactory.typeName4("B", [])])); | 2575 AstFactory.typeName4("B", [])])); |
| 2589 } | 2576 } |
| 2590 | 2577 |
| 2591 void test_visitImplementsClause_single() { | 2578 void test_visitImplementsClause_single() { |
| 2592 _assertSource("implements A", AstFactory.implementsClause([AstFactory.typeNa
me4("A", [])])); | 2579 _assertSource("implements A", AstFactory.implementsClause([AstFactory.typeNa
me4("A", [])])); |
| 2593 } | 2580 } |
| 2594 | 2581 |
| 2595 void test_visitImportDirective_combinator() { | 2582 void test_visitImportDirective_combinator() { |
| 2596 _assertSource("import 'a.dart' show A;", AstFactory.importDirective2("a.dart
", null, [AstFactory.showCombinator([AstFactory.identifier3("A")])])); | 2583 _assertSource("import 'a.dart' show A;", AstFactory.importDirective3("a.dart
", null, [AstFactory.showCombinator([AstFactory.identifier3("A")])])); |
| 2597 } | 2584 } |
| 2598 | 2585 |
| 2599 void test_visitImportDirective_combinators() { | 2586 void test_visitImportDirective_combinators() { |
| 2600 _assertSource("import 'a.dart' show A hide B;", AstFactory.importDirective2(
"a.dart", null, [ | 2587 _assertSource("import 'a.dart' show A hide B;", AstFactory.importDirective3(
"a.dart", null, [ |
| 2601 AstFactory.showCombinator([AstFactory.identifier3("A")]), | 2588 AstFactory.showCombinator([AstFactory.identifier3("A")]), |
| 2602 AstFactory.hideCombinator([AstFactory.identifier3("B")])])); | 2589 AstFactory.hideCombinator([AstFactory.identifier3("B")])])); |
| 2603 } | 2590 } |
| 2604 | 2591 |
| 2592 void test_visitImportDirective_deferred() { |
| 2593 _assertSource("import 'a.dart' deferred as p;", AstFactory.importDirective2(
"a.dart", true, "p", [])); |
| 2594 } |
| 2595 |
| 2605 void test_visitImportDirective_minimal() { | 2596 void test_visitImportDirective_minimal() { |
| 2606 _assertSource("import 'a.dart';", AstFactory.importDirective2("a.dart", null
, [])); | 2597 _assertSource("import 'a.dart';", AstFactory.importDirective3("a.dart", null
, [])); |
| 2607 } | 2598 } |
| 2608 | 2599 |
| 2609 void test_visitImportDirective_prefix() { | 2600 void test_visitImportDirective_prefix() { |
| 2610 _assertSource("import 'a.dart' as p;", AstFactory.importDirective2("a.dart",
"p", [])); | 2601 _assertSource("import 'a.dart' as p;", AstFactory.importDirective3("a.dart",
"p", [])); |
| 2611 } | 2602 } |
| 2612 | 2603 |
| 2613 void test_visitImportDirective_prefix_combinator() { | 2604 void test_visitImportDirective_prefix_combinator() { |
| 2614 _assertSource("import 'a.dart' as p show A;", AstFactory.importDirective2("a
.dart", "p", [AstFactory.showCombinator([AstFactory.identifier3("A")])])); | 2605 _assertSource("import 'a.dart' as p show A;", AstFactory.importDirective3("a
.dart", "p", [AstFactory.showCombinator([AstFactory.identifier3("A")])])); |
| 2615 } | 2606 } |
| 2616 | 2607 |
| 2617 void test_visitImportDirective_prefix_combinators() { | 2608 void test_visitImportDirective_prefix_combinators() { |
| 2618 _assertSource("import 'a.dart' as p show A hide B;", AstFactory.importDirect
ive2("a.dart", "p", [ | 2609 _assertSource("import 'a.dart' as p show A hide B;", AstFactory.importDirect
ive3("a.dart", "p", [ |
| 2619 AstFactory.showCombinator([AstFactory.identifier3("A")]), | 2610 AstFactory.showCombinator([AstFactory.identifier3("A")]), |
| 2620 AstFactory.hideCombinator([AstFactory.identifier3("B")])])); | 2611 AstFactory.hideCombinator([AstFactory.identifier3("B")])])); |
| 2621 } | 2612 } |
| 2622 | 2613 |
| 2623 void test_visitImportDirective_withMetadata() { | 2614 void test_visitImportDirective_withMetadata() { |
| 2624 ImportDirective directive = AstFactory.importDirective2("a.dart", null, []); | 2615 ImportDirective directive = AstFactory.importDirective3("a.dart", null, []); |
| 2625 directive.metadata = AstFactory.list([AstFactory.annotation(AstFactory.ident
ifier3("deprecated"))]); | 2616 directive.metadata = AstFactory.list([AstFactory.annotation(AstFactory.ident
ifier3("deprecated"))]); |
| 2626 _assertSource("@deprecated import 'a.dart';", directive); | 2617 _assertSource("@deprecated import 'a.dart';", directive); |
| 2627 } | 2618 } |
| 2628 | 2619 |
| 2629 void test_visitImportHideCombinator_multiple() { | 2620 void test_visitImportHideCombinator_multiple() { |
| 2630 _assertSource("hide a, b", AstFactory.hideCombinator([AstFactory.identifier3
("a"), AstFactory.identifier3("b")])); | 2621 _assertSource("hide a, b", AstFactory.hideCombinator([AstFactory.identifier3
("a"), AstFactory.identifier3("b")])); |
| 2631 } | 2622 } |
| 2632 | 2623 |
| 2633 void test_visitImportHideCombinator_single() { | 2624 void test_visitImportHideCombinator_single() { |
| 2634 _assertSource("hide a", AstFactory.hideCombinator([AstFactory.identifier3("a
")])); | 2625 _assertSource("hide a", AstFactory.hideCombinator([AstFactory.identifier3("a
")])); |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3163 runJUnitTest(__test, __test.test_visitAdjacentStrings); | 3154 runJUnitTest(__test, __test.test_visitAdjacentStrings); |
| 3164 }); | 3155 }); |
| 3165 _ut.test('test_visitAnnotation_constant', () { | 3156 _ut.test('test_visitAnnotation_constant', () { |
| 3166 final __test = new ToSourceVisitorTest(); | 3157 final __test = new ToSourceVisitorTest(); |
| 3167 runJUnitTest(__test, __test.test_visitAnnotation_constant); | 3158 runJUnitTest(__test, __test.test_visitAnnotation_constant); |
| 3168 }); | 3159 }); |
| 3169 _ut.test('test_visitAnnotation_constructor', () { | 3160 _ut.test('test_visitAnnotation_constructor', () { |
| 3170 final __test = new ToSourceVisitorTest(); | 3161 final __test = new ToSourceVisitorTest(); |
| 3171 runJUnitTest(__test, __test.test_visitAnnotation_constructor); | 3162 runJUnitTest(__test, __test.test_visitAnnotation_constructor); |
| 3172 }); | 3163 }); |
| 3173 _ut.test('test_visitArgumentDefinitionTest', () { | |
| 3174 final __test = new ToSourceVisitorTest(); | |
| 3175 runJUnitTest(__test, __test.test_visitArgumentDefinitionTest); | |
| 3176 }); | |
| 3177 _ut.test('test_visitArgumentList', () { | 3164 _ut.test('test_visitArgumentList', () { |
| 3178 final __test = new ToSourceVisitorTest(); | 3165 final __test = new ToSourceVisitorTest(); |
| 3179 runJUnitTest(__test, __test.test_visitArgumentList); | 3166 runJUnitTest(__test, __test.test_visitArgumentList); |
| 3180 }); | 3167 }); |
| 3181 _ut.test('test_visitAsExpression', () { | 3168 _ut.test('test_visitAsExpression', () { |
| 3182 final __test = new ToSourceVisitorTest(); | 3169 final __test = new ToSourceVisitorTest(); |
| 3183 runJUnitTest(__test, __test.test_visitAsExpression); | 3170 runJUnitTest(__test, __test.test_visitAsExpression); |
| 3184 }); | 3171 }); |
| 3185 _ut.test('test_visitAssertStatement', () { | 3172 _ut.test('test_visitAssertStatement', () { |
| 3186 final __test = new ToSourceVisitorTest(); | 3173 final __test = new ToSourceVisitorTest(); |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3719 runJUnitTest(__test, __test.test_visitImplementsClause_single); | 3706 runJUnitTest(__test, __test.test_visitImplementsClause_single); |
| 3720 }); | 3707 }); |
| 3721 _ut.test('test_visitImportDirective_combinator', () { | 3708 _ut.test('test_visitImportDirective_combinator', () { |
| 3722 final __test = new ToSourceVisitorTest(); | 3709 final __test = new ToSourceVisitorTest(); |
| 3723 runJUnitTest(__test, __test.test_visitImportDirective_combinator); | 3710 runJUnitTest(__test, __test.test_visitImportDirective_combinator); |
| 3724 }); | 3711 }); |
| 3725 _ut.test('test_visitImportDirective_combinators', () { | 3712 _ut.test('test_visitImportDirective_combinators', () { |
| 3726 final __test = new ToSourceVisitorTest(); | 3713 final __test = new ToSourceVisitorTest(); |
| 3727 runJUnitTest(__test, __test.test_visitImportDirective_combinators); | 3714 runJUnitTest(__test, __test.test_visitImportDirective_combinators); |
| 3728 }); | 3715 }); |
| 3716 _ut.test('test_visitImportDirective_deferred', () { |
| 3717 final __test = new ToSourceVisitorTest(); |
| 3718 runJUnitTest(__test, __test.test_visitImportDirective_deferred); |
| 3719 }); |
| 3729 _ut.test('test_visitImportDirective_minimal', () { | 3720 _ut.test('test_visitImportDirective_minimal', () { |
| 3730 final __test = new ToSourceVisitorTest(); | 3721 final __test = new ToSourceVisitorTest(); |
| 3731 runJUnitTest(__test, __test.test_visitImportDirective_minimal); | 3722 runJUnitTest(__test, __test.test_visitImportDirective_minimal); |
| 3732 }); | 3723 }); |
| 3733 _ut.test('test_visitImportDirective_prefix', () { | 3724 _ut.test('test_visitImportDirective_prefix', () { |
| 3734 final __test = new ToSourceVisitorTest(); | 3725 final __test = new ToSourceVisitorTest(); |
| 3735 runJUnitTest(__test, __test.test_visitImportDirective_prefix); | 3726 runJUnitTest(__test, __test.test_visitImportDirective_prefix); |
| 3736 }); | 3727 }); |
| 3737 _ut.test('test_visitImportDirective_prefix_combinator', () { | 3728 _ut.test('test_visitImportDirective_prefix_combinator', () { |
| 3738 final __test = new ToSourceVisitorTest(); | 3729 final __test = new ToSourceVisitorTest(); |
| (...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4273 ToSourceVisitorTest.dartSuite(); | 4264 ToSourceVisitorTest.dartSuite(); |
| 4274 BreadthFirstVisitorTest.dartSuite(); | 4265 BreadthFirstVisitorTest.dartSuite(); |
| 4275 ClassDeclarationTest.dartSuite(); | 4266 ClassDeclarationTest.dartSuite(); |
| 4276 ClassTypeAliasTest.dartSuite(); | 4267 ClassTypeAliasTest.dartSuite(); |
| 4277 IndexExpressionTest.dartSuite(); | 4268 IndexExpressionTest.dartSuite(); |
| 4278 NodeListTest.dartSuite(); | 4269 NodeListTest.dartSuite(); |
| 4279 SimpleIdentifierTest.dartSuite(); | 4270 SimpleIdentifierTest.dartSuite(); |
| 4280 SimpleStringLiteralTest.dartSuite(); | 4271 SimpleStringLiteralTest.dartSuite(); |
| 4281 VariableDeclarationTest.dartSuite(); | 4272 VariableDeclarationTest.dartSuite(); |
| 4282 } | 4273 } |
| OLD | NEW |