Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: pkg/analyzer/lib/src/generated/source.dart

Issue 1296653003: Fix most implementations of UriResolver.restoreAbsolute. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/source/sdk_ext.dart ('k') | pkg/analyzer/lib/src/generated/source_io.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/source/sdk_ext.dart ('k') | pkg/analyzer/lib/src/generated/source_io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698