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

Side by Side Diff: pkg/analyzer/lib/file_system/file_system.dart

Issue 2079873002: Initial Bazel file resolver support. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: rebase Created 4 years, 6 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
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 analyzer.file_system.file_system; 5 library analyzer.file_system.file_system;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analyzer/src/generated/source.dart'; 9 import 'package:analyzer/src/generated/source.dart';
10 import 'package:analyzer/src/util/absolute_path.dart'; 10 import 'package:analyzer/src/util/absolute_path.dart';
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 if (resource is File) { 235 if (resource is File) {
236 return resource.createSource(actualUri ?? uri); 236 return resource.createSource(actualUri ?? uri);
237 } 237 }
238 return null; 238 return null;
239 } 239 }
240 240
241 @override 241 @override
242 Uri restoreAbsolute(Source source) => 242 Uri restoreAbsolute(Source source) =>
243 _provider.pathContext.toUri(source.fullName); 243 _provider.pathContext.toUri(source.fullName);
244 244
245 ResourceProvider get provider => _provider;
246
245 /** 247 /**
246 * Return `true` if the given [uri] is a `file` URI. 248 * Return `true` if the given [uri] is a `file` URI.
247 */ 249 */
248 static bool isFileUri(Uri uri) => uri.scheme == FILE_SCHEME; 250 static bool isFileUri(Uri uri) => uri.scheme == FILE_SCHEME;
249 } 251 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/socket_server_test.dart ('k') | pkg/analyzer/lib/src/context/context.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698