Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(400)

Side by Side Diff: pkg/analyzer/lib/src/string_source.dart

Issue 428303004: Breaking changes in 'analyzer' package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rename Source.resolveRelative to resolveRelativeUri, soften version constraints Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/lib/src/generated/source_io.dart ('k') | pkg/analyzer/pubspec.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 resolveRelativeUri(Uri relativeUri) => throw new UnsupportedError(
44 "StringSource doesn't support resolveRelative."); 48 "StringSource doesn't support resolveRelative.");
45 } 49 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/source_io.dart ('k') | pkg/analyzer/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698