OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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.string_source; | 5 library analyzer.string_source; |
6 | 6 |
7 import 'generated/source.dart'; | 7 import 'generated/source.dart'; |
8 import 'generated/engine.dart' show TimestampedData; | 8 import 'generated/engine.dart' show TimestampedData; |
9 | 9 |
10 /// An implementation of [Source] that's based on an in-memory Dart string. | 10 /// An implementation of [Source] that's based on an in-memory Dart string. |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 String get shortName => fullName; | 34 String get shortName => fullName; |
35 | 35 |
36 UriKind get uriKind => throw new UnsupportedError("StringSource doesn't suppor
t " | 36 UriKind get uriKind => throw new UnsupportedError("StringSource doesn't suppor
t " |
37 "uriKind."); | 37 "uriKind."); |
38 | 38 |
39 int get hashCode => _contents.hashCode ^ fullName.hashCode; | 39 int get hashCode => _contents.hashCode ^ fullName.hashCode; |
40 | 40 |
41 bool get isInSystemLibrary => false; | 41 bool get isInSystemLibrary => false; |
42 | 42 |
43 Source resolveRelative(Uri relativeUri) => throw new UnsupportedError( | 43 @override |
| 44 Uri get uri => throw new UnsupportedError( |
| 45 "StringSource doesn't support uri."); |
| 46 |
| 47 Uri resolveRelative(Uri relativeUri) => throw new UnsupportedError( |
44 "StringSource doesn't support resolveRelative."); | 48 "StringSource doesn't support resolveRelative."); |
45 } | 49 } |
OLD | NEW |