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/src/generated/scanner.dart'; | 8 import 'package:analyzer/dart/ast/token.dart'; |
| 9 import 'package:analyzer/src/dart/ast/token.dart'; |
9 import 'package:analyzer/src/generated/testing/ast_factory.dart'; | 10 import 'package:analyzer/src/generated/testing/ast_factory.dart'; |
10 import 'package:analyzer/src/generated/testing/token_factory.dart'; | 11 import 'package:analyzer/src/generated/testing/token_factory.dart'; |
11 import 'package:unittest/unittest.dart'; | 12 import 'package:unittest/unittest.dart'; |
12 | 13 |
13 import '../../generated/parser_test.dart' show ParserTestCase; | 14 import '../../generated/parser_test.dart' show ParserTestCase; |
14 import '../../generated/test_support.dart'; | 15 import '../../generated/test_support.dart'; |
15 import '../../reflective_tests.dart'; | 16 import '../../reflective_tests.dart'; |
16 import '../../utils.dart'; | 17 import '../../utils.dart'; |
17 | 18 |
18 main() { | 19 main() { |
(...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1298 final int ordinal; | 1299 final int ordinal; |
1299 | 1300 |
1300 const _WrapperKind(this.name, this.ordinal); | 1301 const _WrapperKind(this.name, this.ordinal); |
1301 | 1302 |
1302 int get hashCode => ordinal; | 1303 int get hashCode => ordinal; |
1303 | 1304 |
1304 int compareTo(_WrapperKind other) => ordinal - other.ordinal; | 1305 int compareTo(_WrapperKind other) => ordinal - other.ordinal; |
1305 | 1306 |
1306 String toString() => name; | 1307 String toString() => name; |
1307 } | 1308 } |
OLD | NEW |