OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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.constant_test; | 5 library analyzer.test.constant_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/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
10 import 'package:analyzer/dart/element/type.dart'; | 10 import 'package:analyzer/dart/element/type.dart'; |
11 import 'package:analyzer/src/dart/ast/token.dart'; | 11 import 'package:analyzer/src/dart/ast/token.dart'; |
12 import 'package:analyzer/src/dart/element/element.dart'; | 12 import 'package:analyzer/src/dart/element/element.dart'; |
13 import 'package:analyzer/src/generated/constant.dart'; | 13 import 'package:analyzer/src/generated/constant.dart'; |
14 import 'package:analyzer/src/generated/engine.dart'; | 14 import 'package:analyzer/src/generated/engine.dart'; |
15 import 'package:analyzer/src/generated/error.dart'; | 15 import 'package:analyzer/src/generated/error.dart'; |
16 import 'package:analyzer/src/generated/resolver.dart'; | 16 import 'package:analyzer/src/generated/resolver.dart'; |
17 import 'package:analyzer/src/generated/source.dart'; | 17 import 'package:analyzer/src/generated/source.dart'; |
18 import 'package:analyzer/src/generated/source_io.dart'; | 18 import 'package:analyzer/src/generated/source_io.dart'; |
19 import 'package:analyzer/src/generated/testing/ast_factory.dart'; | 19 import 'package:analyzer/src/generated/testing/ast_factory.dart'; |
20 import 'package:analyzer/src/generated/testing/element_factory.dart'; | 20 import 'package:analyzer/src/generated/testing/element_factory.dart'; |
21 import 'package:analyzer/src/generated/testing/test_type_provider.dart'; | 21 import 'package:analyzer/src/generated/testing/test_type_provider.dart'; |
22 import 'package:analyzer/src/generated/utilities_collection.dart'; | 22 import 'package:analyzer/src/generated/utilities_collection.dart'; |
23 import 'package:analyzer/src/task/dart.dart'; | 23 import 'package:analyzer/src/task/dart.dart'; |
24 import 'package:path/path.dart'; | 24 import 'package:path/path.dart'; |
25 import 'package:unittest/unittest.dart'; | 25 import 'package:unittest/unittest.dart'; |
26 | 26 |
27 import '../reflective_tests.dart'; | 27 import '../reflective_tests.dart'; |
28 import '../utils.dart'; | 28 import '../utils.dart'; |
29 import 'engine_test.dart'; | 29 import 'engine_test.dart'; |
30 import 'resolver_test.dart'; | 30 import 'resolver_test_case.dart'; |
31 import 'test_support.dart'; | 31 import 'test_support.dart'; |
32 | 32 |
33 main() { | 33 main() { |
34 initializeTestEnvironment(); | 34 initializeTestEnvironment(); |
35 runReflectiveTests(ConstantEvaluatorTest); | 35 runReflectiveTests(ConstantEvaluatorTest); |
36 runReflectiveTests(ConstantFinderTest); | 36 runReflectiveTests(ConstantFinderTest); |
37 runReflectiveTests(ConstantValueComputerTest); | 37 runReflectiveTests(ConstantValueComputerTest); |
38 runReflectiveTests(ConstantVisitorTest); | 38 runReflectiveTests(ConstantVisitorTest); |
39 runReflectiveTests(DartObjectImplTest); | 39 runReflectiveTests(DartObjectImplTest); |
40 runReflectiveTests(DeclaredVariablesTest); | 40 runReflectiveTests(DeclaredVariablesTest); |
(...skipping 4491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4532 | 4532 |
4533 void _visitNode(AstNode node) { | 4533 void _visitNode(AstNode node) { |
4534 node.accept(_createReferenceFinder(_head)); | 4534 node.accept(_createReferenceFinder(_head)); |
4535 } | 4535 } |
4536 } | 4536 } |
4537 | 4537 |
4538 class _TestAnalysisContext extends TestAnalysisContext { | 4538 class _TestAnalysisContext extends TestAnalysisContext { |
4539 @override | 4539 @override |
4540 InternalAnalysisContext getContextFor(Source source) => this; | 4540 InternalAnalysisContext getContextFor(Source source) => this; |
4541 } | 4541 } |
OLD | NEW |