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 test.context.directory.manager; | 5 library test.context.directory.manager; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:collection'; | 8 import 'dart:collection'; |
9 | 9 |
10 import 'package:analysis_server/src/context_manager.dart'; | 10 import 'package:analysis_server/src/context_manager.dart'; |
11 import 'package:analysis_server/src/utilities/null_string_sink.dart'; | 11 import 'package:analysis_server/src/utilities/null_string_sink.dart'; |
12 import 'package:analyzer/context/context_root.dart'; | 12 import 'package:analyzer/context/context_root.dart'; |
13 import 'package:analyzer/error/error.dart'; | 13 import 'package:analyzer/error/error.dart'; |
14 import 'package:analyzer/file_system/file_system.dart'; | 14 import 'package:analyzer/file_system/file_system.dart'; |
15 import 'package:analyzer/file_system/memory_file_system.dart'; | 15 import 'package:analyzer/file_system/memory_file_system.dart'; |
16 import 'package:analyzer/instrumentation/instrumentation.dart'; | 16 import 'package:analyzer/instrumentation/instrumentation.dart'; |
17 import 'package:analyzer/source/error_processor.dart'; | 17 import 'package:analyzer/source/error_processor.dart'; |
18 import 'package:analyzer/src/context/builder.dart'; | 18 import 'package:analyzer/src/context/builder.dart'; |
19 import 'package:analyzer/src/dart/analysis/driver.dart'; | 19 import 'package:analyzer/src/dart/analysis/driver.dart'; |
20 import 'package:analyzer/src/dart/analysis/file_state.dart'; | 20 import 'package:analyzer/src/dart/analysis/file_state.dart'; |
21 import 'package:analyzer/src/error/codes.dart'; | 21 import 'package:analyzer/src/error/codes.dart'; |
22 import 'package:analyzer/src/generated/engine.dart' hide AnalysisResult; | 22 import 'package:analyzer/src/generated/engine.dart' hide AnalysisResult; |
23 import 'package:analyzer/src/generated/sdk.dart'; | 23 import 'package:analyzer/src/generated/sdk.dart'; |
24 import 'package:analyzer/src/generated/source.dart'; | 24 import 'package:analyzer/src/generated/source.dart'; |
25 import 'package:analyzer/src/generated/source_io.dart'; | 25 import 'package:analyzer/src/generated/source_io.dart'; |
26 import 'package:analyzer/src/services/lint.dart'; | 26 import 'package:analyzer/src/services/lint.dart'; |
27 import 'package:analyzer/src/summary/summary_file_builder.dart'; | 27 import 'package:analyzer/src/summary/summary_file_builder.dart'; |
28 import 'package:analyzer/src/util/glob.dart'; | 28 import 'package:analyzer/src/util/glob.dart'; |
| 29 import 'package:front_end/src/base/performace_logger.dart'; |
29 import 'package:front_end/src/incremental/byte_store.dart'; | 30 import 'package:front_end/src/incremental/byte_store.dart'; |
30 import 'package:linter/src/rules.dart'; | 31 import 'package:linter/src/rules.dart'; |
31 import 'package:linter/src/rules/avoid_as.dart'; | 32 import 'package:linter/src/rules/avoid_as.dart'; |
32 import 'package:path/path.dart' as path; | 33 import 'package:path/path.dart' as path; |
33 import 'package:plugin/manager.dart'; | 34 import 'package:plugin/manager.dart'; |
34 import 'package:plugin/plugin.dart'; | 35 import 'package:plugin/plugin.dart'; |
35 import 'package:test/test.dart'; | 36 import 'package:test/test.dart'; |
36 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 37 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
37 import 'package:watcher/watcher.dart'; | 38 import 'package:watcher/watcher.dart'; |
38 | 39 |
(...skipping 2911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2950 class TestUriResolver extends UriResolver { | 2951 class TestUriResolver extends UriResolver { |
2951 Map<Uri, Source> uriMap; | 2952 Map<Uri, Source> uriMap; |
2952 | 2953 |
2953 TestUriResolver(this.uriMap); | 2954 TestUriResolver(this.uriMap); |
2954 | 2955 |
2955 @override | 2956 @override |
2956 Source resolveAbsolute(Uri uri, [Uri actualUri]) { | 2957 Source resolveAbsolute(Uri uri, [Uri actualUri]) { |
2957 return uriMap[uri]; | 2958 return uriMap[uri]; |
2958 } | 2959 } |
2959 } | 2960 } |
OLD | NEW |