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

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

Issue 896613003: Fix for issue 22245 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/lib/src/generated/ast.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) 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/ast.dart'; 10 import 'package:analyzer/src/generated/ast.dart';
(...skipping 10 matching lines...) Expand all
21 import 'test_support.dart'; 21 import 'test_support.dart';
22 22
23 23
24 main() { 24 main() {
25 groupSep = ' | '; 25 groupSep = ' | ';
26 runReflectiveTests(BreadthFirstVisitorTest); 26 runReflectiveTests(BreadthFirstVisitorTest);
27 runReflectiveTests(ClassDeclarationTest); 27 runReflectiveTests(ClassDeclarationTest);
28 runReflectiveTests(ClassTypeAliasTest); 28 runReflectiveTests(ClassTypeAliasTest);
29 runReflectiveTests(ConstantEvaluatorTest); 29 runReflectiveTests(ConstantEvaluatorTest);
30 runReflectiveTests(ConstructorDeclarationTest); 30 runReflectiveTests(ConstructorDeclarationTest);
31 runReflectiveTests(FieldFormalParameterTest);
31 runReflectiveTests(IndexExpressionTest); 32 runReflectiveTests(IndexExpressionTest);
32 runReflectiveTests(NodeListTest); 33 runReflectiveTests(NodeListTest);
33 runReflectiveTests(NodeLocatorTest); 34 runReflectiveTests(NodeLocatorTest);
34 runReflectiveTests(SimpleIdentifierTest); 35 runReflectiveTests(SimpleIdentifierTest);
35 runReflectiveTests(SimpleStringLiteralTest); 36 runReflectiveTests(SimpleStringLiteralTest);
36 runReflectiveTests(StringInterpolationTest); 37 runReflectiveTests(StringInterpolationTest);
37 runReflectiveTests(ToSourceVisitorTest); 38 runReflectiveTests(ToSourceVisitorTest);
38 runReflectiveTests(VariableDeclarationTest); 39 runReflectiveTests(VariableDeclarationTest);
39 } 40 }
40 41
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 null, 657 null,
657 null, 658 null,
658 null); 659 null);
659 expect( 660 expect(
660 declaration.firstTokenAfterCommentAndMetadata, 661 declaration.firstTokenAfterCommentAndMetadata,
661 declaration.factoryKeyword); 662 declaration.factoryKeyword);
662 } 663 }
663 } 664 }
664 665
665 @reflectiveTest 666 @reflectiveTest
667 class FieldFormalParameterTest extends EngineTestCase {
668 void test_endToken_noParameters() {
669 FieldFormalParameter parameter = AstFactory.fieldFormalParameter2('field');
670 expect(parameter.endToken, parameter.identifier.endToken);
671 }
672
673 void test_endToken_parameters() {
674 FieldFormalParameter parameter = AstFactory.fieldFormalParameter(null, null, 'field', AstFactory.formalParameterList([]));
675 expect(parameter.endToken, parameter.parameters.endToken);
676 }
677 }
678
679 @reflectiveTest
666 class IndexExpressionTest extends EngineTestCase { 680 class IndexExpressionTest extends EngineTestCase {
667 void test_inGetterContext_assignment_compound_left() { 681 void test_inGetterContext_assignment_compound_left() {
668 IndexExpression expression = AstFactory.indexExpression( 682 IndexExpression expression = AstFactory.indexExpression(
669 AstFactory.identifier3("a"), 683 AstFactory.identifier3("a"),
670 AstFactory.identifier3("b")); 684 AstFactory.identifier3("b"));
671 // a[b] += c 685 // a[b] += c
672 AstFactory.assignmentExpression( 686 AstFactory.assignmentExpression(
673 expression, 687 expression,
674 TokenType.PLUS_EQ, 688 TokenType.PLUS_EQ,
675 AstFactory.identifier3("c")); 689 AstFactory.identifier3("c"));
(...skipping 3406 matching lines...) Expand 10 before | Expand all | Expand 10 after
4082 4096
4083 static const List<WrapperKind> values = const [ 4097 static const List<WrapperKind> values = const [
4084 PREFIXED_LEFT, 4098 PREFIXED_LEFT,
4085 PREFIXED_RIGHT, 4099 PREFIXED_RIGHT,
4086 PROPERTY_LEFT, 4100 PROPERTY_LEFT,
4087 PROPERTY_RIGHT, 4101 PROPERTY_RIGHT,
4088 NONE]; 4102 NONE];
4089 4103
4090 const WrapperKind(String name, int ordinal) : super(name, ordinal); 4104 const WrapperKind(String name, int ordinal) : super(name, ordinal);
4091 } 4105 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/ast.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698