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 engine.source; | 5 library analyzer.src.generated.source; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 import "dart:math" as math; | 8 import "dart:math" as math; |
9 | 9 |
10 import 'package:analyzer/file_system/file_system.dart'; | 10 import 'package:analyzer/file_system/file_system.dart'; |
11 import 'package:analyzer/file_system/physical_file_system.dart'; | 11 import 'package:analyzer/file_system/physical_file_system.dart'; |
12 import 'package:analyzer/source/package_map_resolver.dart'; | 12 import 'package:analyzer/source/package_map_resolver.dart'; |
| 13 import 'package:analyzer/src/generated/engine.dart'; |
| 14 import 'package:analyzer/src/generated/java_core.dart'; |
| 15 import 'package:analyzer/src/generated/java_engine.dart'; |
| 16 import 'package:analyzer/src/generated/java_io.dart' show JavaFile; |
| 17 import 'package:analyzer/src/generated/sdk.dart' show DartSdk; |
| 18 import 'package:analyzer/src/generated/source_io.dart' show FileBasedSource; |
13 import 'package:analyzer/src/generated/utilities_dart.dart' as utils; | 19 import 'package:analyzer/src/generated/utilities_dart.dart' as utils; |
14 import 'package:analyzer/task/model.dart'; | 20 import 'package:analyzer/task/model.dart'; |
15 import 'package:package_config/packages.dart'; | 21 import 'package:package_config/packages.dart'; |
16 import 'package:path/path.dart' as pathos; | 22 import 'package:path/path.dart' as pathos; |
17 | 23 |
18 import 'engine.dart'; | |
19 import 'java_core.dart'; | |
20 import 'java_engine.dart'; | |
21 import 'java_io.dart' show JavaFile; | |
22 import 'sdk.dart' show DartSdk; | |
23 import 'source_io.dart' show FileBasedSource; | |
24 | |
25 /** | 24 /** |
26 * A function that is used to visit [ContentCache] entries. | 25 * A function that is used to visit [ContentCache] entries. |
27 */ | 26 */ |
28 typedef void ContentCacheVisitor(String fullPath, int stamp, String contents); | 27 typedef void ContentCacheVisitor(String fullPath, int stamp, String contents); |
29 | 28 |
30 /** | 29 /** |
31 * A cache used to override the default content of a [Source]. | 30 * A cache used to override the default content of a [Source]. |
32 */ | 31 */ |
33 class ContentCache { | 32 class ContentCache { |
34 /** | 33 /** |
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1092 Source resolveAbsolute(Uri uri, [Uri actualUri]); | 1091 Source resolveAbsolute(Uri uri, [Uri actualUri]); |
1093 | 1092 |
1094 /** | 1093 /** |
1095 * Return an absolute URI that represents the given [source], or `null` if a | 1094 * Return an absolute URI that represents the given [source], or `null` if a |
1096 * valid URI cannot be computed. | 1095 * valid URI cannot be computed. |
1097 * | 1096 * |
1098 * The computation should be based solely on [source.fullName]. | 1097 * The computation should be based solely on [source.fullName]. |
1099 */ | 1098 */ |
1100 Uri restoreAbsolute(Source source) => null; | 1099 Uri restoreAbsolute(Source source) => null; |
1101 } | 1100 } |
OLD | NEW |