| OLD | NEW |
| 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_16(); | 20 static final LocalSourcePredicate FALSE = new LocalSourcePredicate_18(); |
| 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_17(); | 25 static final LocalSourcePredicate TRUE = new LocalSourcePredicate_19(); |
| 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_18(); | 31 static final LocalSourcePredicate NOT_SDK = new LocalSourcePredicate_20(); |
| 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_16 implements LocalSourcePredicate { | 42 class LocalSourcePredicate_18 implements LocalSourcePredicate { |
| 43 bool isLocal(Source source) => false; | 43 bool isLocal(Source source) => false; |
| 44 } | 44 } |
| 45 | 45 |
| 46 class LocalSourcePredicate_17 implements LocalSourcePredicate { | 46 class LocalSourcePredicate_19 implements LocalSourcePredicate { |
| 47 bool isLocal(Source source) => true; | 47 bool isLocal(Source source) => true; |
| 48 } | 48 } |
| 49 | 49 |
| 50 class LocalSourcePredicate_18 implements LocalSourcePredicate { | 50 class LocalSourcePredicate_20 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 Loading... |
| 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 } |
| OLD | NEW |