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 library analyzer.test.dart.ast.ast_test; | 5 library analyzer.test.dart.ast.ast_test; |
6 | 6 |
7 import 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
8 import 'package:analyzer/dart/ast/token.dart'; | 8 import 'package:analyzer/dart/ast/token.dart'; |
9 import 'package:analyzer/src/dart/ast/token.dart'; | 9 import 'package:analyzer/src/dart/ast/token.dart'; |
10 import 'package:analyzer/src/generated/testing/ast_factory.dart'; | 10 import 'package:analyzer/src/generated/testing/ast_factory.dart'; |
11 import 'package:analyzer/src/generated/testing/token_factory.dart'; | 11 import 'package:analyzer/src/generated/testing/token_factory.dart'; |
12 import 'package:test/test.dart'; | 12 import 'package:test/test.dart'; |
13 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 13 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
14 | 14 |
15 import '../../generated/parser_test.dart' show ParserTestCase; | 15 import '../../generated/parser_test.dart' show ParserTestCase; |
16 import '../../generated/test_support.dart'; | 16 import '../../generated/test_support.dart'; |
17 import '../../utils.dart'; | |
18 | 17 |
19 main() { | 18 main() { |
20 initializeTestEnvironment(); | |
21 defineReflectiveSuite(() { | 19 defineReflectiveSuite(() { |
22 defineReflectiveTests(ClassDeclarationTest); | 20 defineReflectiveTests(ClassDeclarationTest); |
23 defineReflectiveTests(ClassTypeAliasTest); | 21 defineReflectiveTests(ClassTypeAliasTest); |
24 defineReflectiveTests(ConstructorDeclarationTest); | 22 defineReflectiveTests(ConstructorDeclarationTest); |
25 defineReflectiveTests(FieldFormalParameterTest); | 23 defineReflectiveTests(FieldFormalParameterTest); |
26 defineReflectiveTests(IndexExpressionTest); | 24 defineReflectiveTests(IndexExpressionTest); |
27 defineReflectiveTests(MethodDeclarationTest); | 25 defineReflectiveTests(MethodDeclarationTest); |
28 defineReflectiveTests(NodeListTest); | 26 defineReflectiveTests(NodeListTest); |
29 defineReflectiveTests(SimpleIdentifierTest); | 27 defineReflectiveTests(SimpleIdentifierTest); |
30 defineReflectiveTests(SimpleStringLiteralTest); | 28 defineReflectiveTests(SimpleStringLiteralTest); |
(...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1229 final int ordinal; | 1227 final int ordinal; |
1230 | 1228 |
1231 const _WrapperKind(this.name, this.ordinal); | 1229 const _WrapperKind(this.name, this.ordinal); |
1232 | 1230 |
1233 int get hashCode => ordinal; | 1231 int get hashCode => ordinal; |
1234 | 1232 |
1235 int compareTo(_WrapperKind other) => ordinal - other.ordinal; | 1233 int compareTo(_WrapperKind other) => ordinal - other.ordinal; |
1236 | 1234 |
1237 String toString() => name; | 1235 String toString() => name; |
1238 } | 1236 } |
OLD | NEW |