OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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.src.task.incremental_element_builder_test; | 5 library analyzer.test.src.task.incremental_element_builder_test; |
6 | 6 |
7 import 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
8 import 'package:analyzer/dart/element/element.dart'; | 8 import 'package:analyzer/dart/element/element.dart'; |
9 import 'package:analyzer/dart/element/visitor.dart'; | 9 import 'package:analyzer/dart/element/visitor.dart'; |
10 import 'package:analyzer/src/dart/ast/utilities.dart'; | 10 import 'package:analyzer/src/dart/ast/utilities.dart'; |
11 import 'package:analyzer/src/dart/element/element.dart'; | 11 import 'package:analyzer/src/dart/element/element.dart'; |
12 import 'package:analyzer/src/generated/engine.dart'; | 12 import 'package:analyzer/src/generated/engine.dart'; |
13 import 'package:analyzer/src/generated/source.dart'; | 13 import 'package:analyzer/src/generated/source.dart'; |
14 import 'package:analyzer/src/task/dart.dart'; | 14 import 'package:analyzer/src/task/dart.dart'; |
15 import 'package:analyzer/src/task/incremental_element_builder.dart'; | 15 import 'package:analyzer/src/task/incremental_element_builder.dart'; |
16 import 'package:analyzer/task/dart.dart'; | 16 import 'package:analyzer/task/dart.dart'; |
| 17 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
17 import 'package:unittest/unittest.dart'; | 18 import 'package:unittest/unittest.dart'; |
18 | 19 |
19 import '../../reflective_tests.dart'; | |
20 import '../../utils.dart'; | 20 import '../../utils.dart'; |
21 import '../context/abstract_context.dart'; | 21 import '../context/abstract_context.dart'; |
22 | 22 |
23 main() { | 23 main() { |
24 initializeTestEnvironment(); | 24 initializeTestEnvironment(); |
25 runReflectiveTests(IncrementalCompilationUnitElementBuilderTest); | 25 defineReflectiveTests(IncrementalCompilationUnitElementBuilderTest); |
26 } | 26 } |
27 | 27 |
28 @reflectiveTest | 28 @reflectiveTest |
29 class IncrementalCompilationUnitElementBuilderTest extends AbstractContextTest { | 29 class IncrementalCompilationUnitElementBuilderTest extends AbstractContextTest { |
30 Source source; | 30 Source source; |
31 | 31 |
32 String oldCode; | 32 String oldCode; |
33 CompilationUnit oldUnit; | 33 CompilationUnit oldUnit; |
34 CompilationUnitElement unitElement; | 34 CompilationUnitElement unitElement; |
35 | 35 |
(...skipping 2183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2219 unitMember is ClassDeclaration && unitMember.name.name == name); | 2219 unitMember is ClassDeclaration && unitMember.name.name == name); |
2220 } | 2220 } |
2221 | 2221 |
2222 class _MaterializeLazyElementsVisitor extends GeneralizingElementVisitor { | 2222 class _MaterializeLazyElementsVisitor extends GeneralizingElementVisitor { |
2223 @override | 2223 @override |
2224 visitExecutableElement(ExecutableElement element) { | 2224 visitExecutableElement(ExecutableElement element) { |
2225 element.parameters; | 2225 element.parameters; |
2226 super.visitExecutableElement(element); | 2226 super.visitExecutableElement(element); |
2227 } | 2227 } |
2228 } | 2228 } |
OLD | NEW |