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 engine.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'; |
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1066 * it was resolved, whether or not the resulting source exists, or `null` if i
t could not be | 1066 * it was resolved, whether or not the resulting source exists, or `null` if i
t could not be |
1067 * resolved because the URI is invalid. | 1067 * resolved because the URI is invalid. |
1068 * | 1068 * |
1069 * @param uri the URI to be resolved | 1069 * @param uri the URI to be resolved |
1070 * @param actualUri the actual uri for this source -- if `null`, the value of
[uri] will be used | 1070 * @param actualUri the actual uri for this source -- if `null`, the value of
[uri] will be used |
1071 * @return a [Source] representing the file to which given URI was resolved | 1071 * @return a [Source] representing the file to which given URI was resolved |
1072 */ | 1072 */ |
1073 Source resolveAbsolute(Uri uri, [Uri actualUri]); | 1073 Source resolveAbsolute(Uri uri, [Uri actualUri]); |
1074 | 1074 |
1075 /** | 1075 /** |
1076 * Return an absolute URI that represents the given source, or `null` if a val
id URI cannot | 1076 * Return an absolute URI that represents the given [source], or `null` if a |
1077 * be computed. | 1077 * valid URI cannot be computed. |
1078 * | 1078 * |
1079 * @param source the source to get URI for | 1079 * The computation should be based solely on [source.fullName]. |
1080 * @return the absolute URI representing the given source | |
1081 */ | 1080 */ |
1082 Uri restoreAbsolute(Source source) => null; | 1081 Uri restoreAbsolute(Source source) => null; |
1083 } | 1082 } |
OLD | NEW |