| 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; | 5 library analyzer.src.generated.source; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import "dart:math" as math; | 8 import "dart:math" as math; |
| 9 | 9 |
| 10 import 'package:analyzer/file_system/file_system.dart'; | 10 import 'package:analyzer/file_system/file_system.dart'; |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 final UriKind uriKind; | 372 final UriKind uriKind; |
| 373 | 373 |
| 374 NonExistingSource(this.fullName, this.uri, this.uriKind); | 374 NonExistingSource(this.fullName, this.uri, this.uriKind); |
| 375 | 375 |
| 376 @override | 376 @override |
| 377 TimestampedData<String> get contents { | 377 TimestampedData<String> get contents { |
| 378 throw new UnsupportedOperationException('$fullName does not exist.'); | 378 throw new UnsupportedOperationException('$fullName does not exist.'); |
| 379 } | 379 } |
| 380 | 380 |
| 381 @override | 381 @override |
| 382 String get encoding { | 382 String get encoding => uri.toString(); |
| 383 throw new UnsupportedOperationException('$fullName does not exist.'); | |
| 384 } | |
| 385 | 383 |
| 386 @override | 384 @override |
| 387 int get hashCode => fullName.hashCode; | 385 int get hashCode => fullName.hashCode; |
| 388 | 386 |
| 389 @override | 387 @override |
| 390 bool get isInSystemLibrary => false; | 388 bool get isInSystemLibrary => false; |
| 391 | 389 |
| 392 @override | 390 @override |
| 393 int get modificationStamp => -1; | 391 int get modificationStamp => -1; |
| 394 | 392 |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 Source resolveAbsolute(Uri uri, [Uri actualUri]); | 931 Source resolveAbsolute(Uri uri, [Uri actualUri]); |
| 934 | 932 |
| 935 /** | 933 /** |
| 936 * Return an absolute URI that represents the given [source], or `null` if a | 934 * Return an absolute URI that represents the given [source], or `null` if a |
| 937 * valid URI cannot be computed. | 935 * valid URI cannot be computed. |
| 938 * | 936 * |
| 939 * The computation should be based solely on [source.fullName]. | 937 * The computation should be based solely on [source.fullName]. |
| 940 */ | 938 */ |
| 941 Uri restoreAbsolute(Source source) => null; | 939 Uri restoreAbsolute(Source source) => null; |
| 942 } | 940 } |
| OLD | NEW |