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

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

Issue 123763002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 3
4 library engine.source; 4 library engine.source;
5 5
6 import 'java_core.dart'; 6 import 'java_core.dart';
7 import 'sdk.dart' show DartSdk; 7 import 'sdk.dart' show DartSdk;
8 import 'engine.dart' show AnalysisContext; 8 import 'engine.dart' show AnalysisContext;
9 9
10 /** 10 /**
11 * Instances of interface `LocalSourcePredicate` are used to determine if the gi ven 11 * Instances of interface `LocalSourcePredicate` are used to determine if the gi ven
12 * [Source] is "local" in some sense, so can be updated. 12 * [Source] is "local" in some sense, so can be updated.
13 * 13 *
14 * @coverage dart.engine.source 14 * @coverage dart.engine.source
15 */ 15 */
16 abstract class LocalSourcePredicate { 16 abstract class LocalSourcePredicate {
17 /** 17 /**
18 * Instance of [LocalSourcePredicate] that always returns `false`. 18 * Instance of [LocalSourcePredicate] that always returns `false`.
19 */ 19 */
20 static final LocalSourcePredicate FALSE = new LocalSourcePredicate_15(); 20 static final LocalSourcePredicate FALSE = new LocalSourcePredicate_16();
21 21
22 /** 22 /**
23 * Instance of [LocalSourcePredicate] that always returns `true`. 23 * Instance of [LocalSourcePredicate] that always returns `true`.
24 */ 24 */
25 static final LocalSourcePredicate TRUE = new LocalSourcePredicate_16(); 25 static final LocalSourcePredicate TRUE = new LocalSourcePredicate_17();
26 26
27 /** 27 /**
28 * Instance of [LocalSourcePredicate] that returns `true` for all [Source]s 28 * Instance of [LocalSourcePredicate] that returns `true` for all [Source]s
29 * except of SDK. 29 * except of SDK.
30 */ 30 */
31 static final LocalSourcePredicate NOT_SDK = new LocalSourcePredicate_17(); 31 static final LocalSourcePredicate NOT_SDK = new LocalSourcePredicate_18();
32 32
33 /** 33 /**
34 * Determines if the given [Source] is local. 34 * Determines if the given [Source] is local.
35 * 35 *
36 * @param source the [Source] to analyze 36 * @param source the [Source] to analyze
37 * @return `true` if the given [Source] is local 37 * @return `true` if the given [Source] is local
38 */ 38 */
39 bool isLocal(Source source); 39 bool isLocal(Source source);
40 } 40 }
41 41
42 class LocalSourcePredicate_15 implements LocalSourcePredicate { 42 class LocalSourcePredicate_16 implements LocalSourcePredicate {
43 bool isLocal(Source source) => false; 43 bool isLocal(Source source) => false;
44 } 44 }
45 45
46 class LocalSourcePredicate_16 implements LocalSourcePredicate { 46 class LocalSourcePredicate_17 implements LocalSourcePredicate {
47 bool isLocal(Source source) => true; 47 bool isLocal(Source source) => true;
48 } 48 }
49 49
50 class LocalSourcePredicate_17 implements LocalSourcePredicate { 50 class LocalSourcePredicate_18 implements LocalSourcePredicate {
51 bool isLocal(Source source) => source.uriKind != UriKind.DART_URI; 51 bool isLocal(Source source) => source.uriKind != UriKind.DART_URI;
52 } 52 }
53 53
54 /** 54 /**
55 * Instances of the class `SourceFactory` resolve possibly relative URI's agains t an existing 55 * Instances of the class `SourceFactory` resolve possibly relative URI's agains t an existing
56 * [Source]. 56 * [Source].
57 * 57 *
58 * @coverage dart.engine.source 58 * @coverage dart.engine.source
59 */ 59 */
60 class SourceFactory { 60 class SourceFactory {
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 } else { 892 } else {
893 int newStamp = JavaSystem.currentTimeMillis(); 893 int newStamp = JavaSystem.currentTimeMillis();
894 int oldStamp = javaMapPut(_stampMap, source, newStamp); 894 int oldStamp = javaMapPut(_stampMap, source, newStamp);
895 if (newStamp == oldStamp) { 895 if (newStamp == oldStamp) {
896 _stampMap[source] = newStamp + 1; 896 _stampMap[source] = newStamp + 1;
897 } 897 }
898 return javaMapPut(_contentMap, source, contents); 898 return javaMapPut(_contentMap, source, contents);
899 } 899 }
900 } 900 }
901 } 901 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/sdk_io.dart ('k') | pkg/analyzer/lib/src/generated/source_io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698