File tree 2 files changed +0
-27
lines changed 2 files changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -1000,23 +1000,6 @@ class AnalysisDriver implements AnalysisDriverGeneric {
1000
1000
return completer.future;
1001
1001
}
1002
1002
1003
- /// Return `true` is the file with the given absolute [uri] is a library,
1004
- /// or `false` if it is a part. More specifically, return `true` if the file
1005
- /// is not known to be a part.
1006
- ///
1007
- /// Correspondingly, return `true` if the [uri] does not correspond to a file,
1008
- /// for any reason, e.g. the file does not exist, or the [uri] cannot be
1009
- /// resolved to a file path, or the [uri] is invalid, e.g. a `package:` URI
1010
- /// without a package name. In these cases we cannot prove that the file is
1011
- /// not a part, so it must be a library.
1012
- bool isLibraryByUri (Uri uri) {
1013
- var fileOr = _fsState.getFileForUri (uri);
1014
- return fileOr.map (
1015
- (file) => file == null || ! file.isPart,
1016
- (uri) => false ,
1017
- );
1018
- }
1019
-
1020
1003
/// Return a [Future] that completes with a [ParsedUnitResult] for the file
1021
1004
/// with the given [path] .
1022
1005
///
Original file line number Diff line number Diff line change @@ -2459,16 +2459,6 @@ class B<T extends A<B>> {}
2459
2459
await waitForIdleWithoutExceptions ();
2460
2460
}
2461
2461
2462
- test_isLibraryByUri_doesNotExist () async {
2463
- var uri = Uri .parse ('file:///test.dart' );
2464
- expect (driver.isLibraryByUri (uri), isTrue);
2465
- }
2466
-
2467
- test_isLibraryByUri_invalidUri () async {
2468
- var uri = Uri .parse ('package:aaa' );
2469
- expect (driver.isLibraryByUri (uri), isTrue);
2470
- }
2471
-
2472
2462
test_issue34619 () async {
2473
2463
var a = convertPath ('/test/lib/a.dart' );
2474
2464
newFile (a, r'''
You can’t perform that action at this time.
0 commit comments