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.io; | 5 library analyzer.src.generated.source_io; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import 'engine.dart'; | 9 import 'package:analyzer/src/generated/engine.dart'; |
10 import 'java_core.dart'; | 10 import 'package:analyzer/src/generated/java_core.dart'; |
11 import 'java_engine.dart'; | 11 import 'package:analyzer/src/generated/java_engine.dart'; |
12 import 'java_io.dart'; | 12 import 'package:analyzer/src/generated/java_io.dart'; |
13 import 'source.dart'; | 13 import 'package:analyzer/src/generated/source.dart'; |
14 | 14 |
15 export 'source.dart'; | 15 export 'package:analyzer/src/generated/source.dart'; |
16 | 16 |
17 /** | 17 /** |
18 * Instances of the class [DirectoryBasedSourceContainer] represent a source con
tainer that | 18 * Instances of the class [DirectoryBasedSourceContainer] represent a source con
tainer that |
19 * contains all sources within a given directory. | 19 * contains all sources within a given directory. |
20 */ | 20 */ |
21 class DirectoryBasedSourceContainer implements SourceContainer { | 21 class DirectoryBasedSourceContainer implements SourceContainer { |
22 /** | 22 /** |
23 * The container's path (not `null`). | 23 * The container's path (not `null`). |
24 */ | 24 */ |
25 String _path; | 25 String _path; |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 } | 538 } |
539 | 539 |
540 /** | 540 /** |
541 * Return `true` if the given URI is a `file` URI. | 541 * Return `true` if the given URI is a `file` URI. |
542 * | 542 * |
543 * @param uri the URI being tested | 543 * @param uri the URI being tested |
544 * @return `true` if the given URI is a `file` URI | 544 * @return `true` if the given URI is a `file` URI |
545 */ | 545 */ |
546 static bool isFileUri(Uri uri) => uri.scheme == FILE_SCHEME; | 546 static bool isFileUri(Uri uri) => uri.scheme == FILE_SCHEME; |
547 } | 547 } |
OLD | NEW |