| 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 analyzer.src.generated.source_io; | 5 library analyzer.src.generated.source_io; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/src/generated/engine.dart'; | 9 import 'package:analyzer/src/generated/engine.dart'; |
| 10 import 'package:analyzer/src/generated/java_core.dart'; | 10 import 'package:analyzer/src/generated/java_core.dart'; |
| 11 import 'package:analyzer/src/generated/java_engine.dart'; | 11 import 'package:analyzer/src/generated/java_engine.dart'; |
| 12 import 'package:analyzer/src/generated/java_io.dart'; | 12 import 'package:analyzer/src/generated/java_io.dart'; |
| 13 import 'package:analyzer/src/generated/source.dart'; | 13 import 'package:analyzer/src/generated/source.dart'; |
| 14 import 'package:analyzer/src/generated/utilities_dart.dart'; | |
| 15 | 14 |
| 16 export 'package:analyzer/src/generated/source.dart'; | 15 export 'package:analyzer/src/generated/source.dart'; |
| 17 | 16 |
| 18 /** | 17 /** |
| 19 * Instances of the class [DirectoryBasedSourceContainer] represent a source con
tainer that | 18 * Instances of the class [DirectoryBasedSourceContainer] represent a source con
tainer that |
| 20 * contains all sources within a given directory. | 19 * contains all sources within a given directory. |
| 21 */ | 20 */ |
| 22 class DirectoryBasedSourceContainer implements SourceContainer { | 21 class DirectoryBasedSourceContainer implements SourceContainer { |
| 23 /** | 22 /** |
| 24 * The container's path (not `null`). | 23 * The container's path (not `null`). |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 } | 553 } |
| 555 | 554 |
| 556 /** | 555 /** |
| 557 * Return `true` if the given URI is a `file` URI. | 556 * Return `true` if the given URI is a `file` URI. |
| 558 * | 557 * |
| 559 * @param uri the URI being tested | 558 * @param uri the URI being tested |
| 560 * @return `true` if the given URI is a `file` URI | 559 * @return `true` if the given URI is a `file` URI |
| 561 */ | 560 */ |
| 562 static bool isFileUri(Uri uri) => uri.scheme == FILE_SCHEME; | 561 static bool isFileUri(Uri uri) => uri.scheme == FILE_SCHEME; |
| 563 } | 562 } |
| OLD | NEW |