| 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'; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 * identifier is used for equality tests and hash codes. | 95 * identifier is used for equality tests and hash codes. |
| 96 * | 96 * |
| 97 * The URI and filepath are joined into a pair by separating them with an '@' | 97 * The URI and filepath are joined into a pair by separating them with an '@' |
| 98 * character. | 98 * character. |
| 99 */ | 99 */ |
| 100 static final Map<String, int> _idTable = new HashMap<String, int>(); | 100 static final Map<String, int> _idTable = new HashMap<String, int>(); |
| 101 | 101 |
| 102 /** | 102 /** |
| 103 * The URI from which this source was originally derived. | 103 * The URI from which this source was originally derived. |
| 104 */ | 104 */ |
| 105 @override |
| 105 final Uri uri; | 106 final Uri uri; |
| 106 | 107 |
| 107 /** | 108 /** |
| 108 * The unique ID associated with this [FileBasedSource]. | 109 * The unique ID associated with this [FileBasedSource]. |
| 109 */ | 110 */ |
| 110 final int id; | 111 final int id; |
| 111 | 112 |
| 112 /** | 113 /** |
| 113 * The file represented by this source. | 114 * The file represented by this source. |
| 114 */ | 115 */ |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 } | 539 } |
| 539 | 540 |
| 540 /** | 541 /** |
| 541 * Return `true` if the given URI is a `file` URI. | 542 * Return `true` if the given URI is a `file` URI. |
| 542 * | 543 * |
| 543 * @param uri the URI being tested | 544 * @param uri the URI being tested |
| 544 * @return `true` if the given URI is a `file` URI | 545 * @return `true` if the given URI is a `file` URI |
| 545 */ | 546 */ |
| 546 static bool isFileUri(Uri uri) => uri.scheme == FILE_SCHEME; | 547 static bool isFileUri(Uri uri) => uri.scheme == FILE_SCHEME; |
| 547 } | 548 } |
| OLD | NEW |