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

Side by Side Diff: pkg/analyzer/lib/src/generated/source.dart

Issue 322603002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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
OLDNEW
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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.source; 8 library engine.source;
9 9
10 import 'dart:collection';
10 import 'java_core.dart'; 11 import 'java_core.dart';
11 import 'sdk.dart' show DartSdk; 12 import 'sdk.dart' show DartSdk;
12 import 'engine.dart' show AnalysisContext, TimestampedData; 13 import 'engine.dart' show AnalysisContext, TimestampedData;
13 14
14 /** 15 /**
15 * Instances of class `ContentCache` hold content used to override the default c ontent of a 16 * Instances of class `ContentCache` hold content used to override the default c ontent of a
16 * [Source]. 17 * [Source].
17 */ 18 */
18 class ContentCache { 19 class ContentCache {
19 /** 20 /**
20 * A table mapping sources to the contents of those sources. This is used to o verride the default 21 * A table mapping sources to the contents of those sources. This is used to o verride the default
21 * contents of a source. 22 * contents of a source.
22 */ 23 */
23 Map<Source, String> _contentMap = new Map<Source, String>(); 24 HashMap<Source, String> _contentMap = new HashMap<Source, String>();
24 25
25 /** 26 /**
26 * A table mapping sources to the modification stamps of those sources. This i s used when the 27 * A table mapping sources to the modification stamps of those sources. This i s used when the
27 * default contents of a source has been overridden. 28 * default contents of a source has been overridden.
28 */ 29 */
29 Map<Source, int> _stampMap = new Map<Source, int>(); 30 HashMap<Source, int> _stampMap = new HashMap<Source, int>();
30 31
31 /** 32 /**
32 * Return the contents of the given source, or `null` if this cache does not o verride the 33 * Return the contents of the given source, or `null` if this cache does not o verride the
33 * contents of the source. 34 * contents of the source.
34 * 35 *
35 * <b>Note:</b> This method is not intended to be used except by 36 * <b>Note:</b> This method is not intended to be used except by
36 * [AnalysisContext#getContents]. 37 * [AnalysisContext#getContents].
37 * 38 *
38 * @param source the source whose content is to be returned 39 * @param source the source whose content is to be returned
39 * @return the contents of the given source 40 * @return the contents of the given source
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 867
867 /** 868 /**
868 * Return an absolute URI that represents the given source, or `null` if a val id URI cannot 869 * Return an absolute URI that represents the given source, or `null` if a val id URI cannot
869 * be computed. 870 * be computed.
870 * 871 *
871 * @param source the source to get URI for 872 * @param source the source to get URI for
872 * @return the absolute URI representing the given source 873 * @return the absolute URI representing the given source
873 */ 874 */
874 Uri restoreAbsolute(Source source) => null; 875 Uri restoreAbsolute(Source source) => null;
875 } 876 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/sdk.dart ('k') | pkg/analyzer/lib/src/generated/utilities_collection.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698