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

Side by Side Diff: pkg/analyzer/test/generated/utilities_test.dart

Issue 2622303006: Reapply "Add support for generic function type syntax, part 1" (Closed)
Patch Set: Created 3 years, 11 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
OLDNEW
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 library analyzer.test.generated.utilities_test; 5 library analyzer.test.generated.utilities_test;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/ast/standard_ast_factory.dart'; 10 import 'package:analyzer/dart/ast/standard_ast_factory.dart';
(...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after
1624 Identifier get(Annotation node) => node.name; 1624 Identifier get(Annotation node) => node.name;
1625 } 1625 }
1626 1626
1627 class Getter_NodeReplacerTest_test_annotation_3 1627 class Getter_NodeReplacerTest_test_annotation_3
1628 implements NodeReplacerTest_Getter<Annotation, SimpleIdentifier> { 1628 implements NodeReplacerTest_Getter<Annotation, SimpleIdentifier> {
1629 @override 1629 @override
1630 SimpleIdentifier get(Annotation node) => node.constructorName; 1630 SimpleIdentifier get(Annotation node) => node.constructorName;
1631 } 1631 }
1632 1632
1633 class Getter_NodeReplacerTest_test_asExpression 1633 class Getter_NodeReplacerTest_test_asExpression
1634 implements NodeReplacerTest_Getter<AsExpression, TypeName> { 1634 implements NodeReplacerTest_Getter<AsExpression, TypeAnnotation> {
1635 @override 1635 @override
1636 TypeName get(AsExpression node) => node.type; 1636 TypeAnnotation get(AsExpression node) => node.type;
1637 } 1637 }
1638 1638
1639 class Getter_NodeReplacerTest_test_asExpression_2 1639 class Getter_NodeReplacerTest_test_asExpression_2
1640 implements NodeReplacerTest_Getter<AsExpression, Expression> { 1640 implements NodeReplacerTest_Getter<AsExpression, Expression> {
1641 @override 1641 @override
1642 Expression get(AsExpression node) => node.expression; 1642 Expression get(AsExpression node) => node.expression;
1643 } 1643 }
1644 1644
1645 class Getter_NodeReplacerTest_test_assertStatement 1645 class Getter_NodeReplacerTest_test_assertStatement
1646 implements NodeReplacerTest_Getter<AssertStatement, Expression> { 1646 implements NodeReplacerTest_Getter<AssertStatement, Expression> {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
1708 SimpleIdentifier get(CatchClause node) => node.stackTraceParameter; 1708 SimpleIdentifier get(CatchClause node) => node.stackTraceParameter;
1709 } 1709 }
1710 1710
1711 class Getter_NodeReplacerTest_test_catchClause_2 1711 class Getter_NodeReplacerTest_test_catchClause_2
1712 implements NodeReplacerTest_Getter<CatchClause, SimpleIdentifier> { 1712 implements NodeReplacerTest_Getter<CatchClause, SimpleIdentifier> {
1713 @override 1713 @override
1714 SimpleIdentifier get(CatchClause node) => node.exceptionParameter; 1714 SimpleIdentifier get(CatchClause node) => node.exceptionParameter;
1715 } 1715 }
1716 1716
1717 class Getter_NodeReplacerTest_test_catchClause_3 1717 class Getter_NodeReplacerTest_test_catchClause_3
1718 implements NodeReplacerTest_Getter<CatchClause, TypeName> { 1718 implements NodeReplacerTest_Getter<CatchClause, TypeAnnotation> {
1719 @override 1719 @override
1720 TypeName get(CatchClause node) => node.exceptionType; 1720 TypeAnnotation get(CatchClause node) => node.exceptionType;
1721 } 1721 }
1722 1722
1723 class Getter_NodeReplacerTest_test_classDeclaration 1723 class Getter_NodeReplacerTest_test_classDeclaration
1724 implements NodeReplacerTest_Getter<ClassDeclaration, ImplementsClause> { 1724 implements NodeReplacerTest_Getter<ClassDeclaration, ImplementsClause> {
1725 @override 1725 @override
1726 ImplementsClause get(ClassDeclaration node) => node.implementsClause; 1726 ImplementsClause get(ClassDeclaration node) => node.implementsClause;
1727 } 1727 }
1728 1728
1729 class Getter_NodeReplacerTest_test_classDeclaration_2 1729 class Getter_NodeReplacerTest_test_classDeclaration_2
1730 implements NodeReplacerTest_Getter<ClassDeclaration, WithClause> { 1730 implements NodeReplacerTest_Getter<ClassDeclaration, WithClause> {
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
1876 SimpleIdentifier get(ConstructorName node) => node.name; 1876 SimpleIdentifier get(ConstructorName node) => node.name;
1877 } 1877 }
1878 1878
1879 class Getter_NodeReplacerTest_test_continueStatement 1879 class Getter_NodeReplacerTest_test_continueStatement
1880 implements NodeReplacerTest_Getter<ContinueStatement, SimpleIdentifier> { 1880 implements NodeReplacerTest_Getter<ContinueStatement, SimpleIdentifier> {
1881 @override 1881 @override
1882 SimpleIdentifier get(ContinueStatement node) => node.label; 1882 SimpleIdentifier get(ContinueStatement node) => node.label;
1883 } 1883 }
1884 1884
1885 class Getter_NodeReplacerTest_test_declaredIdentifier 1885 class Getter_NodeReplacerTest_test_declaredIdentifier
1886 implements NodeReplacerTest_Getter<DeclaredIdentifier, TypeName> { 1886 implements NodeReplacerTest_Getter<DeclaredIdentifier, TypeAnnotation> {
1887 @override 1887 @override
1888 TypeName get(DeclaredIdentifier node) => node.type; 1888 TypeAnnotation get(DeclaredIdentifier node) => node.type;
1889 } 1889 }
1890 1890
1891 class Getter_NodeReplacerTest_test_declaredIdentifier_2 1891 class Getter_NodeReplacerTest_test_declaredIdentifier_2
1892 implements NodeReplacerTest_Getter<DeclaredIdentifier, SimpleIdentifier> { 1892 implements NodeReplacerTest_Getter<DeclaredIdentifier, SimpleIdentifier> {
1893 @override 1893 @override
1894 SimpleIdentifier get(DeclaredIdentifier node) => node.identifier; 1894 SimpleIdentifier get(DeclaredIdentifier node) => node.identifier;
1895 } 1895 }
1896 1896
1897 class Getter_NodeReplacerTest_test_defaultFormalParameter 1897 class Getter_NodeReplacerTest_test_defaultFormalParameter
1898 implements 1898 implements
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
1958 } 1958 }
1959 1959
1960 class Getter_NodeReplacerTest_test_fieldFormalParameter 1960 class Getter_NodeReplacerTest_test_fieldFormalParameter
1961 implements 1961 implements
1962 NodeReplacerTest_Getter<FieldFormalParameter, FormalParameterList> { 1962 NodeReplacerTest_Getter<FieldFormalParameter, FormalParameterList> {
1963 @override 1963 @override
1964 FormalParameterList get(FieldFormalParameter node) => node.parameters; 1964 FormalParameterList get(FieldFormalParameter node) => node.parameters;
1965 } 1965 }
1966 1966
1967 class Getter_NodeReplacerTest_test_fieldFormalParameter_2 1967 class Getter_NodeReplacerTest_test_fieldFormalParameter_2
1968 implements NodeReplacerTest_Getter<FieldFormalParameter, TypeName> { 1968 implements NodeReplacerTest_Getter<FieldFormalParameter, TypeAnnotation> {
1969 @override 1969 @override
1970 TypeName get(FieldFormalParameter node) => node.type; 1970 TypeAnnotation get(FieldFormalParameter node) => node.type;
1971 } 1971 }
1972 1972
1973 class Getter_NodeReplacerTest_test_forEachStatement_withIdentifier 1973 class Getter_NodeReplacerTest_test_forEachStatement_withIdentifier
1974 implements NodeReplacerTest_Getter<ForEachStatement, Statement> { 1974 implements NodeReplacerTest_Getter<ForEachStatement, Statement> {
1975 @override 1975 @override
1976 Statement get(ForEachStatement node) => node.body; 1976 Statement get(ForEachStatement node) => node.body;
1977 } 1977 }
1978 1978
1979 class Getter_NodeReplacerTest_test_forEachStatement_withIdentifier_2 1979 class Getter_NodeReplacerTest_test_forEachStatement_withIdentifier_2
1980 implements NodeReplacerTest_Getter<ForEachStatement, SimpleIdentifier> { 1980 implements NodeReplacerTest_Getter<ForEachStatement, SimpleIdentifier> {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
2036 VariableDeclarationList get(ForStatement node) => node.variables; 2036 VariableDeclarationList get(ForStatement node) => node.variables;
2037 } 2037 }
2038 2038
2039 class Getter_NodeReplacerTest_test_forStatement_withVariables_3 2039 class Getter_NodeReplacerTest_test_forStatement_withVariables_3
2040 implements NodeReplacerTest_Getter<ForStatement, Expression> { 2040 implements NodeReplacerTest_Getter<ForStatement, Expression> {
2041 @override 2041 @override
2042 Expression get(ForStatement node) => node.condition; 2042 Expression get(ForStatement node) => node.condition;
2043 } 2043 }
2044 2044
2045 class Getter_NodeReplacerTest_test_functionDeclaration 2045 class Getter_NodeReplacerTest_test_functionDeclaration
2046 implements NodeReplacerTest_Getter<FunctionDeclaration, TypeName> { 2046 implements NodeReplacerTest_Getter<FunctionDeclaration, TypeAnnotation> {
2047 @override 2047 @override
2048 TypeName get(FunctionDeclaration node) => node.returnType; 2048 TypeAnnotation get(FunctionDeclaration node) => node.returnType;
2049 } 2049 }
2050 2050
2051 class Getter_NodeReplacerTest_test_functionDeclaration_2 2051 class Getter_NodeReplacerTest_test_functionDeclaration_2
2052 implements 2052 implements
2053 NodeReplacerTest_Getter<FunctionDeclaration, FunctionExpression> { 2053 NodeReplacerTest_Getter<FunctionDeclaration, FunctionExpression> {
2054 @override 2054 @override
2055 FunctionExpression get(FunctionDeclaration node) => node.functionExpression; 2055 FunctionExpression get(FunctionDeclaration node) => node.functionExpression;
2056 } 2056 }
2057 2057
2058 class Getter_NodeReplacerTest_test_functionDeclaration_3 2058 class Getter_NodeReplacerTest_test_functionDeclaration_3
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
2103 TypeParameterList get(FunctionTypeAlias node) => node.typeParameters; 2103 TypeParameterList get(FunctionTypeAlias node) => node.typeParameters;
2104 } 2104 }
2105 2105
2106 class Getter_NodeReplacerTest_test_functionTypeAlias_2 2106 class Getter_NodeReplacerTest_test_functionTypeAlias_2
2107 implements NodeReplacerTest_Getter<FunctionTypeAlias, FormalParameterList> { 2107 implements NodeReplacerTest_Getter<FunctionTypeAlias, FormalParameterList> {
2108 @override 2108 @override
2109 FormalParameterList get(FunctionTypeAlias node) => node.parameters; 2109 FormalParameterList get(FunctionTypeAlias node) => node.parameters;
2110 } 2110 }
2111 2111
2112 class Getter_NodeReplacerTest_test_functionTypeAlias_3 2112 class Getter_NodeReplacerTest_test_functionTypeAlias_3
2113 implements NodeReplacerTest_Getter<FunctionTypeAlias, TypeName> { 2113 implements NodeReplacerTest_Getter<FunctionTypeAlias, TypeAnnotation> {
2114 @override 2114 @override
2115 TypeName get(FunctionTypeAlias node) => node.returnType; 2115 TypeAnnotation get(FunctionTypeAlias node) => node.returnType;
2116 } 2116 }
2117 2117
2118 class Getter_NodeReplacerTest_test_functionTypeAlias_4 2118 class Getter_NodeReplacerTest_test_functionTypeAlias_4
2119 implements NodeReplacerTest_Getter<FunctionTypeAlias, SimpleIdentifier> { 2119 implements NodeReplacerTest_Getter<FunctionTypeAlias, SimpleIdentifier> {
2120 @override 2120 @override
2121 SimpleIdentifier get(FunctionTypeAlias node) => node.name; 2121 SimpleIdentifier get(FunctionTypeAlias node) => node.name;
2122 } 2122 }
2123 2123
2124 class Getter_NodeReplacerTest_test_functionTypedFormalParameter 2124 class Getter_NodeReplacerTest_test_functionTypedFormalParameter
2125 implements NodeReplacerTest_Getter<FunctionTypedFormalParameter, TypeName> { 2125 implements
2126 NodeReplacerTest_Getter<FunctionTypedFormalParameter, TypeAnnotation> {
2126 @override 2127 @override
2127 TypeName get(FunctionTypedFormalParameter node) => node.returnType; 2128 TypeAnnotation get(FunctionTypedFormalParameter node) => node.returnType;
2128 } 2129 }
2129 2130
2130 class Getter_NodeReplacerTest_test_functionTypedFormalParameter_2 2131 class Getter_NodeReplacerTest_test_functionTypedFormalParameter_2
2131 implements 2132 implements
2132 NodeReplacerTest_Getter<FunctionTypedFormalParameter, 2133 NodeReplacerTest_Getter<FunctionTypedFormalParameter,
2133 FormalParameterList> { 2134 FormalParameterList> {
2134 @override 2135 @override
2135 FormalParameterList get(FunctionTypedFormalParameter node) => node.parameters; 2136 FormalParameterList get(FunctionTypedFormalParameter node) => node.parameters;
2136 } 2137 }
2137 2138
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
2191 Expression get(InterpolationExpression node) => node.expression; 2192 Expression get(InterpolationExpression node) => node.expression;
2192 } 2193 }
2193 2194
2194 class Getter_NodeReplacerTest_test_isExpression 2195 class Getter_NodeReplacerTest_test_isExpression
2195 implements NodeReplacerTest_Getter<IsExpression, Expression> { 2196 implements NodeReplacerTest_Getter<IsExpression, Expression> {
2196 @override 2197 @override
2197 Expression get(IsExpression node) => node.expression; 2198 Expression get(IsExpression node) => node.expression;
2198 } 2199 }
2199 2200
2200 class Getter_NodeReplacerTest_test_isExpression_2 2201 class Getter_NodeReplacerTest_test_isExpression_2
2201 implements NodeReplacerTest_Getter<IsExpression, TypeName> { 2202 implements NodeReplacerTest_Getter<IsExpression, TypeAnnotation> {
2202 @override 2203 @override
2203 TypeName get(IsExpression node) => node.type; 2204 TypeAnnotation get(IsExpression node) => node.type;
2204 } 2205 }
2205 2206
2206 class Getter_NodeReplacerTest_test_label 2207 class Getter_NodeReplacerTest_test_label
2207 implements NodeReplacerTest_Getter<Label, SimpleIdentifier> { 2208 implements NodeReplacerTest_Getter<Label, SimpleIdentifier> {
2208 @override 2209 @override
2209 SimpleIdentifier get(Label node) => node.label; 2210 SimpleIdentifier get(Label node) => node.label;
2210 } 2211 }
2211 2212
2212 class Getter_NodeReplacerTest_test_labeledStatement 2213 class Getter_NodeReplacerTest_test_labeledStatement
2213 implements NodeReplacerTest_Getter<LabeledStatement, Statement> { 2214 implements NodeReplacerTest_Getter<LabeledStatement, Statement> {
(...skipping 13 matching lines...) Expand all
2227 Expression get(MapLiteralEntry node) => node.value; 2228 Expression get(MapLiteralEntry node) => node.value;
2228 } 2229 }
2229 2230
2230 class Getter_NodeReplacerTest_test_mapLiteralEntry_2 2231 class Getter_NodeReplacerTest_test_mapLiteralEntry_2
2231 implements NodeReplacerTest_Getter<MapLiteralEntry, Expression> { 2232 implements NodeReplacerTest_Getter<MapLiteralEntry, Expression> {
2232 @override 2233 @override
2233 Expression get(MapLiteralEntry node) => node.key; 2234 Expression get(MapLiteralEntry node) => node.key;
2234 } 2235 }
2235 2236
2236 class Getter_NodeReplacerTest_test_methodDeclaration 2237 class Getter_NodeReplacerTest_test_methodDeclaration
2237 implements NodeReplacerTest_Getter<MethodDeclaration, TypeName> { 2238 implements NodeReplacerTest_Getter<MethodDeclaration, TypeAnnotation> {
2238 @override 2239 @override
2239 TypeName get(MethodDeclaration node) => node.returnType; 2240 TypeAnnotation get(MethodDeclaration node) => node.returnType;
2240 } 2241 }
2241 2242
2242 class Getter_NodeReplacerTest_test_methodDeclaration_2 2243 class Getter_NodeReplacerTest_test_methodDeclaration_2
2243 implements NodeReplacerTest_Getter<MethodDeclaration, FunctionBody> { 2244 implements NodeReplacerTest_Getter<MethodDeclaration, FunctionBody> {
2244 @override 2245 @override
2245 FunctionBody get(MethodDeclaration node) => node.body; 2246 FunctionBody get(MethodDeclaration node) => node.body;
2246 } 2247 }
2247 2248
2248 class Getter_NodeReplacerTest_test_methodDeclaration_3 2249 class Getter_NodeReplacerTest_test_methodDeclaration_3
2249 implements NodeReplacerTest_Getter<MethodDeclaration, SimpleIdentifier> { 2250 implements NodeReplacerTest_Getter<MethodDeclaration, SimpleIdentifier> {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
2364 ArgumentList get(RedirectingConstructorInvocation node) => node.argumentList; 2365 ArgumentList get(RedirectingConstructorInvocation node) => node.argumentList;
2365 } 2366 }
2366 2367
2367 class Getter_NodeReplacerTest_test_returnStatement 2368 class Getter_NodeReplacerTest_test_returnStatement
2368 implements NodeReplacerTest_Getter<ReturnStatement, Expression> { 2369 implements NodeReplacerTest_Getter<ReturnStatement, Expression> {
2369 @override 2370 @override
2370 Expression get(ReturnStatement node) => node.expression; 2371 Expression get(ReturnStatement node) => node.expression;
2371 } 2372 }
2372 2373
2373 class Getter_NodeReplacerTest_test_simpleFormalParameter 2374 class Getter_NodeReplacerTest_test_simpleFormalParameter
2374 implements NodeReplacerTest_Getter<SimpleFormalParameter, TypeName> { 2375 implements NodeReplacerTest_Getter<SimpleFormalParameter, TypeAnnotation> {
2375 @override 2376 @override
2376 TypeName get(SimpleFormalParameter node) => node.type; 2377 TypeAnnotation get(SimpleFormalParameter node) => node.type;
2377 } 2378 }
2378 2379
2379 class Getter_NodeReplacerTest_test_superConstructorInvocation 2380 class Getter_NodeReplacerTest_test_superConstructorInvocation
2380 implements 2381 implements
2381 NodeReplacerTest_Getter<SuperConstructorInvocation, SimpleIdentifier> { 2382 NodeReplacerTest_Getter<SuperConstructorInvocation, SimpleIdentifier> {
2382 @override 2383 @override
2383 SimpleIdentifier get(SuperConstructorInvocation node) => node.constructorName; 2384 SimpleIdentifier get(SuperConstructorInvocation node) => node.constructorName;
2384 } 2385 }
2385 2386
2386 class Getter_NodeReplacerTest_test_superConstructorInvocation_2 2387 class Getter_NodeReplacerTest_test_superConstructorInvocation_2
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
2435 TypeArgumentList get(TypeName node) => node.typeArguments; 2436 TypeArgumentList get(TypeName node) => node.typeArguments;
2436 } 2437 }
2437 2438
2438 class Getter_NodeReplacerTest_test_typeName_2 2439 class Getter_NodeReplacerTest_test_typeName_2
2439 implements NodeReplacerTest_Getter<TypeName, Identifier> { 2440 implements NodeReplacerTest_Getter<TypeName, Identifier> {
2440 @override 2441 @override
2441 Identifier get(TypeName node) => node.name; 2442 Identifier get(TypeName node) => node.name;
2442 } 2443 }
2443 2444
2444 class Getter_NodeReplacerTest_test_typeParameter 2445 class Getter_NodeReplacerTest_test_typeParameter
2445 implements NodeReplacerTest_Getter<TypeParameter, TypeName> { 2446 implements NodeReplacerTest_Getter<TypeParameter, TypeAnnotation> {
2446 @override 2447 @override
2447 TypeName get(TypeParameter node) => node.bound; 2448 TypeAnnotation get(TypeParameter node) => node.bound;
2448 } 2449 }
2449 2450
2450 class Getter_NodeReplacerTest_test_typeParameter_2 2451 class Getter_NodeReplacerTest_test_typeParameter_2
2451 implements NodeReplacerTest_Getter<TypeParameter, SimpleIdentifier> { 2452 implements NodeReplacerTest_Getter<TypeParameter, SimpleIdentifier> {
2452 @override 2453 @override
2453 SimpleIdentifier get(TypeParameter node) => node.name; 2454 SimpleIdentifier get(TypeParameter node) => node.name;
2454 } 2455 }
2455 2456
2456 class Getter_NodeReplacerTest_test_variableDeclaration 2457 class Getter_NodeReplacerTest_test_variableDeclaration
2457 implements NodeReplacerTest_Getter<VariableDeclaration, SimpleIdentifier> { 2458 implements NodeReplacerTest_Getter<VariableDeclaration, SimpleIdentifier> {
2458 @override 2459 @override
2459 SimpleIdentifier get(VariableDeclaration node) => node.name; 2460 SimpleIdentifier get(VariableDeclaration node) => node.name;
2460 } 2461 }
2461 2462
2462 class Getter_NodeReplacerTest_test_variableDeclaration_2 2463 class Getter_NodeReplacerTest_test_variableDeclaration_2
2463 implements NodeReplacerTest_Getter<VariableDeclaration, Expression> { 2464 implements NodeReplacerTest_Getter<VariableDeclaration, Expression> {
2464 @override 2465 @override
2465 Expression get(VariableDeclaration node) => node.initializer; 2466 Expression get(VariableDeclaration node) => node.initializer;
2466 } 2467 }
2467 2468
2468 class Getter_NodeReplacerTest_test_variableDeclarationList 2469 class Getter_NodeReplacerTest_test_variableDeclarationList
2469 implements NodeReplacerTest_Getter<VariableDeclarationList, TypeName> { 2470 implements
2471 NodeReplacerTest_Getter<VariableDeclarationList, TypeAnnotation> {
2470 @override 2472 @override
2471 TypeName get(VariableDeclarationList node) => node.type; 2473 TypeAnnotation get(VariableDeclarationList node) => node.type;
2472 } 2474 }
2473 2475
2474 class Getter_NodeReplacerTest_test_variableDeclarationStatement 2476 class Getter_NodeReplacerTest_test_variableDeclarationStatement
2475 implements 2477 implements
2476 NodeReplacerTest_Getter<VariableDeclarationStatement, 2478 NodeReplacerTest_Getter<VariableDeclarationStatement,
2477 VariableDeclarationList> { 2479 VariableDeclarationList> {
2478 @override 2480 @override
2479 VariableDeclarationList get(VariableDeclarationStatement node) => 2481 VariableDeclarationList get(VariableDeclarationStatement node) =>
2480 node.variables; 2482 node.variables;
2481 } 2483 }
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
2757 2759
2758 class ListGetter_NodeReplacerTest_test_tryStatement 2760 class ListGetter_NodeReplacerTest_test_tryStatement
2759 extends NodeReplacerTest_ListGetter<TryStatement, CatchClause> { 2761 extends NodeReplacerTest_ListGetter<TryStatement, CatchClause> {
2760 ListGetter_NodeReplacerTest_test_tryStatement(int arg0) : super(arg0); 2762 ListGetter_NodeReplacerTest_test_tryStatement(int arg0) : super(arg0);
2761 2763
2762 @override 2764 @override
2763 NodeList<CatchClause> getList(TryStatement node) => node.catchClauses; 2765 NodeList<CatchClause> getList(TryStatement node) => node.catchClauses;
2764 } 2766 }
2765 2767
2766 class ListGetter_NodeReplacerTest_test_typeArgumentList 2768 class ListGetter_NodeReplacerTest_test_typeArgumentList
2767 extends NodeReplacerTest_ListGetter<TypeArgumentList, TypeName> { 2769 extends NodeReplacerTest_ListGetter<TypeArgumentList, TypeAnnotation> {
2768 ListGetter_NodeReplacerTest_test_typeArgumentList(int arg0) : super(arg0); 2770 ListGetter_NodeReplacerTest_test_typeArgumentList(int arg0) : super(arg0);
2769 2771
2770 @override 2772 @override
2771 NodeList<TypeName> getList(TypeArgumentList node) => node.arguments; 2773 NodeList<TypeAnnotation> getList(TypeArgumentList node) => node.arguments;
2772 } 2774 }
2773 2775
2774 class ListGetter_NodeReplacerTest_test_typeParameterList 2776 class ListGetter_NodeReplacerTest_test_typeParameterList
2775 extends NodeReplacerTest_ListGetter<TypeParameterList, TypeParameter> { 2777 extends NodeReplacerTest_ListGetter<TypeParameterList, TypeParameter> {
2776 ListGetter_NodeReplacerTest_test_typeParameterList(int arg0) : super(arg0); 2778 ListGetter_NodeReplacerTest_test_typeParameterList(int arg0) : super(arg0);
2777 2779
2778 @override 2780 @override
2779 NodeList<TypeParameter> getList(TypeParameterList node) => 2781 NodeList<TypeParameter> getList(TypeParameterList node) =>
2780 node.typeParameters; 2782 node.typeParameters;
2781 } 2783 }
(...skipping 1605 matching lines...) Expand 10 before | Expand all | Expand 10 after
4387 tokenMap.put(key, value); 4389 tokenMap.put(key, value);
4388 expect(tokenMap.get(key), same(value)); 4390 expect(tokenMap.get(key), same(value));
4389 } 4391 }
4390 } 4392 }
4391 4393
4392 class _ExceptionThrowingVisitor extends SimpleAstVisitor { 4394 class _ExceptionThrowingVisitor extends SimpleAstVisitor {
4393 visitNullLiteral(NullLiteral node) { 4395 visitNullLiteral(NullLiteral node) {
4394 throw new ArgumentError(''); 4396 throw new ArgumentError('');
4395 } 4397 }
4396 } 4398 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/resolver_test.dart ('k') | pkg/analyzer/test/src/dart/ast/utilities_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698