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/test.dart'; | 17 import 'package:test/test.dart'; |
18 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 18 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
19 | 19 |
20 import '../../utils.dart'; | |
21 import '../context/abstract_context.dart'; | 20 import '../context/abstract_context.dart'; |
22 | 21 |
23 main() { | 22 main() { |
24 initializeTestEnvironment(); | |
25 defineReflectiveSuite(() { | 23 defineReflectiveSuite(() { |
26 defineReflectiveTests(IncrementalCompilationUnitElementBuilderTest); | 24 defineReflectiveTests(IncrementalCompilationUnitElementBuilderTest); |
27 }); | 25 }); |
28 } | 26 } |
29 | 27 |
30 @reflectiveTest | 28 @reflectiveTest |
31 class IncrementalCompilationUnitElementBuilderTest extends AbstractContextTest { | 29 class IncrementalCompilationUnitElementBuilderTest extends AbstractContextTest { |
32 Source source; | 30 Source source; |
33 | 31 |
34 String oldCode; | 32 String oldCode; |
(...skipping 2186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2221 unitMember is ClassDeclaration && unitMember.name.name == name); | 2219 unitMember is ClassDeclaration && unitMember.name.name == name); |
2222 } | 2220 } |
2223 | 2221 |
2224 class _MaterializeLazyElementsVisitor extends GeneralizingElementVisitor { | 2222 class _MaterializeLazyElementsVisitor extends GeneralizingElementVisitor { |
2225 @override | 2223 @override |
2226 visitExecutableElement(ExecutableElement element) { | 2224 visitExecutableElement(ExecutableElement element) { |
2227 element.parameters; | 2225 element.parameters; |
2228 super.visitExecutableElement(element); | 2226 super.visitExecutableElement(element); |
2229 } | 2227 } |
2230 } | 2228 } |
OLD | NEW |