| 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 | 8 |
| 9 /// An implementation of [Source] that's based on an in-memory Dart string. | 9 /// An implementation of [Source] that's based on an in-memory Dart string. |
| 10 class StringSource implements Source { | 10 class StringSource implements Source { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 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 Source resolveRelative(Uri relativeUri) => throw new UnsupportedError( |
| 44 "StringSource doesn't support resolveRelative."); | 44 "StringSource doesn't support resolveRelative."); |
| 45 } | 45 } |
| OLD | NEW |