| 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.source.io; | 8 library engine.source.io; |
| 9 | 9 |
| 10 import 'engine.dart'; | 10 import 'engine.dart'; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 path.codeUnitAt(path.length - 1) == JavaFile.separatorChar) { | 79 path.codeUnitAt(path.length - 1) == JavaFile.separatorChar) { |
| 80 return path; | 80 return path; |
| 81 } | 81 } |
| 82 return "$path${JavaFile.separator}"; | 82 return "$path${JavaFile.separator}"; |
| 83 } | 83 } |
| 84 } | 84 } |
| 85 | 85 |
| 86 /** | 86 /** |
| 87 * Instances of the class `FileBasedSource` implement a source that represents a
file. | 87 * Instances of the class `FileBasedSource` implement a source that represents a
file. |
| 88 */ | 88 */ |
| 89 class FileBasedSource implements Source { | 89 class FileBasedSource extends AbstractSource { |
| 90 | |
| 91 /** | 90 /** |
| 92 * A function that changes the way that files are read off of disk. | 91 * A function that changes the way that files are read off of disk. |
| 93 */ | 92 */ |
| 94 static Function fileReadMode = (String s) => s; | 93 static Function fileReadMode = (String s) => s; |
| 95 | 94 |
| 96 /** | 95 /** |
| 97 * The URI from which this source was originally derived. | 96 * The URI from which this source was originally derived. |
| 98 */ | 97 */ |
| 99 final Uri uri; | 98 final Uri uri; |
| 100 | 99 |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 } | 538 } |
| 540 | 539 |
| 541 /** | 540 /** |
| 542 * Return `true` if the given URI is a `file` URI. | 541 * Return `true` if the given URI is a `file` URI. |
| 543 * | 542 * |
| 544 * @param uri the URI being tested | 543 * @param uri the URI being tested |
| 545 * @return `true` if the given URI is a `file` URI | 544 * @return `true` if the given URI is a `file` URI |
| 546 */ | 545 */ |
| 547 static bool isFileUri(Uri uri) => uri.scheme == FILE_SCHEME; | 546 static bool isFileUri(Uri uri) => uri.scheme == FILE_SCHEME; |
| 548 } | 547 } |
| OLD | NEW |