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

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

Issue 1513643009: Clean up package imports and library names (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « pkg/analyzer/lib/src/services/lint.dart ('k') | pkg/analyzer/lib/src/util/asserts.dart » ('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.src.string_source;
6 6
7 import 'generated/engine.dart' show TimestampedData; 7 import 'package:analyzer/src/generated/engine.dart' show TimestampedData;
8 import 'generated/source.dart'; 8 import 'package:analyzer/src/generated/source.dart';
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.
11 class StringSource extends Source { 11 class StringSource extends Source {
12 final String _contents; 12 final String _contents;
13 final String fullName; 13 final String fullName;
14 final int modificationStamp; 14 final int modificationStamp;
15 15
16 StringSource(this._contents, this.fullName) 16 StringSource(this._contents, this.fullName)
17 : modificationStamp = new DateTime.now().millisecondsSinceEpoch; 17 : modificationStamp = new DateTime.now().millisecondsSinceEpoch;
18 18
(...skipping 22 matching lines...) Expand all
41 return ssObject._contents == _contents && ssObject.fullName == fullName; 41 return ssObject._contents == _contents && ssObject.fullName == fullName;
42 } 42 }
43 return false; 43 return false;
44 } 44 }
45 45
46 bool exists() => true; 46 bool exists() => true;
47 47
48 Uri resolveRelativeUri(Uri relativeUri) => throw new UnsupportedError( 48 Uri resolveRelativeUri(Uri relativeUri) => throw new UnsupportedError(
49 "StringSource doesn't support resolveRelative."); 49 "StringSource doesn't support resolveRelative.");
50 } 50 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/services/lint.dart ('k') | pkg/analyzer/lib/src/util/asserts.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698