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

Side by Side Diff: pkg/analyzer/lib/src/generated/source_io.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
« no previous file with comments | « pkg/analyzer/lib/src/generated/source.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 // 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.io; 4 library engine.source.io;
5 5
6 import 'source.dart'; 6 import 'source.dart';
7 import 'java_core.dart'; 7 import 'java_core.dart';
8 import 'java_io.dart'; 8 import 'java_io.dart';
9 import 'engine.dart' show AnalysisContext, AnalysisEngine; 9 import 'engine.dart' show AnalysisContext, AnalysisEngine;
10 export 'source.dart'; 10 export 'source.dart';
11 11
12 /** 12 /**
13 * Instances of interface `LocalSourcePredicate` are used to determine if the gi ven 13 * Instances of interface `LocalSourcePredicate` are used to determine if the gi ven
14 * [Source] is "local" in some sense, so can be updated. 14 * [Source] is "local" in some sense, so can be updated.
15 * 15 *
16 * @coverage dart.engine.source 16 * @coverage dart.engine.source
17 */ 17 */
18 abstract class LocalSourcePredicate { 18 abstract class LocalSourcePredicate {
19 /** 19 /**
20 * Instance of [LocalSourcePredicate] that always returns `false`. 20 * Instance of [LocalSourcePredicate] that always returns `false`.
21 */ 21 */
22 static final LocalSourcePredicate FALSE = new LocalSourcePredicate_15(); 22 static final LocalSourcePredicate FALSE = new LocalSourcePredicate_16();
23 23
24 /** 24 /**
25 * Instance of [LocalSourcePredicate] that always returns `true`. 25 * Instance of [LocalSourcePredicate] that always returns `true`.
26 */ 26 */
27 static final LocalSourcePredicate TRUE = new LocalSourcePredicate_16(); 27 static final LocalSourcePredicate TRUE = new LocalSourcePredicate_17();
28 28
29 /** 29 /**
30 * Instance of [LocalSourcePredicate] that returns `true` for all [Source]s 30 * Instance of [LocalSourcePredicate] that returns `true` for all [Source]s
31 * except of SDK. 31 * except of SDK.
32 */ 32 */
33 static final LocalSourcePredicate NOT_SDK = new LocalSourcePredicate_17(); 33 static final LocalSourcePredicate NOT_SDK = new LocalSourcePredicate_18();
34 34
35 /** 35 /**
36 * Determines if the given [Source] is local. 36 * Determines if the given [Source] is local.
37 * 37 *
38 * @param source the [Source] to analyze 38 * @param source the [Source] to analyze
39 * @return `true` if the given [Source] is local 39 * @return `true` if the given [Source] is local
40 */ 40 */
41 bool isLocal(Source source); 41 bool isLocal(Source source);
42 } 42 }
43 43
44 class LocalSourcePredicate_15 implements LocalSourcePredicate { 44 class LocalSourcePredicate_16 implements LocalSourcePredicate {
45 bool isLocal(Source source) => false; 45 bool isLocal(Source source) => false;
46 } 46 }
47 47
48 class LocalSourcePredicate_16 implements LocalSourcePredicate { 48 class LocalSourcePredicate_17 implements LocalSourcePredicate {
49 bool isLocal(Source source) => true; 49 bool isLocal(Source source) => true;
50 } 50 }
51 51
52 class LocalSourcePredicate_17 implements LocalSourcePredicate { 52 class LocalSourcePredicate_18 implements LocalSourcePredicate {
53 bool isLocal(Source source) => source.uriKind != UriKind.DART_URI; 53 bool isLocal(Source source) => source.uriKind != UriKind.DART_URI;
54 } 54 }
55 55
56 /** 56 /**
57 * Instances of the class `FileBasedSource` implement a source that represents a file. 57 * Instances of the class `FileBasedSource` implement a source that represents a file.
58 * 58 *
59 * @coverage dart.engine.source 59 * @coverage dart.engine.source
60 */ 60 */
61 class FileBasedSource implements Source { 61 class FileBasedSource implements Source {
62 /** 62 /**
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 return null; 419 return null;
420 } 420 }
421 421
422 Source resolveAbsolute(ContentCache contentCache, Uri uri) { 422 Source resolveAbsolute(ContentCache contentCache, Uri uri) {
423 if (!isFileUri(uri)) { 423 if (!isFileUri(uri)) {
424 return null; 424 return null;
425 } 425 }
426 return new FileBasedSource.con1(contentCache, new JavaFile.fromUri(uri)); 426 return new FileBasedSource.con1(contentCache, new JavaFile.fromUri(uri));
427 } 427 }
428 } 428 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/source.dart ('k') | pkg/analyzer/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698