| 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 analyzer.src.generated.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'; | |
| 12 import 'package:analyzer/source/package_map_resolver.dart'; | |
| 13 import 'package:analyzer/src/context/source.dart'; | 11 import 'package:analyzer/src/context/source.dart'; |
| 14 import 'package:analyzer/src/generated/engine.dart'; | 12 import 'package:analyzer/src/generated/engine.dart'; |
| 15 import 'package:analyzer/src/generated/java_core.dart'; | 13 import 'package:analyzer/src/generated/java_core.dart'; |
| 16 import 'package:analyzer/src/generated/java_engine.dart'; | 14 import 'package:analyzer/src/generated/java_engine.dart'; |
| 17 import 'package:analyzer/src/generated/java_io.dart' show JavaFile; | 15 import 'package:analyzer/src/generated/java_io.dart' show JavaFile; |
| 18 import 'package:analyzer/src/generated/sdk.dart' show DartSdk; | 16 import 'package:analyzer/src/generated/sdk.dart' show DartSdk; |
| 19 import 'package:analyzer/src/generated/source_io.dart' show FileBasedSource; | 17 import 'package:analyzer/src/generated/source_io.dart' show FileBasedSource; |
| 20 import 'package:analyzer/src/generated/utilities_dart.dart' as utils; | |
| 21 import 'package:analyzer/task/model.dart'; | 18 import 'package:analyzer/task/model.dart'; |
| 22 import 'package:package_config/packages.dart'; | 19 import 'package:package_config/packages.dart'; |
| 23 import 'package:path/path.dart' as pathos; | 20 import 'package:path/path.dart' as pathos; |
| 24 | 21 |
| 25 /** | 22 /** |
| 26 * A function that is used to visit [ContentCache] entries. | 23 * A function that is used to visit [ContentCache] entries. |
| 27 */ | 24 */ |
| 28 typedef void ContentCacheVisitor(String fullPath, int stamp, String contents); | 25 typedef void ContentCacheVisitor(String fullPath, int stamp, String contents); |
| 29 | 26 |
| 30 /** | 27 /** |
| (...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 936 Source resolveAbsolute(Uri uri, [Uri actualUri]); | 933 Source resolveAbsolute(Uri uri, [Uri actualUri]); |
| 937 | 934 |
| 938 /** | 935 /** |
| 939 * Return an absolute URI that represents the given [source], or `null` if a | 936 * Return an absolute URI that represents the given [source], or `null` if a |
| 940 * valid URI cannot be computed. | 937 * valid URI cannot be computed. |
| 941 * | 938 * |
| 942 * The computation should be based solely on [source.fullName]. | 939 * The computation should be based solely on [source.fullName]. |
| 943 */ | 940 */ |
| 944 Uri restoreAbsolute(Source source) => null; | 941 Uri restoreAbsolute(Source source) => null; |
| 945 } | 942 } |
| OLD | NEW |