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

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

Issue 103233003: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | 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
14 * [Source] is "local" in some sense, so can be updated.
15 *
16 * @coverage dart.engine.source
17 */
18 abstract class LocalSourcePredicate {
19 /**
20 * Instance of [LocalSourcePredicate] that always returns `false`.
21 */
22 static final LocalSourcePredicate _FALSE = new LocalSourcePredicate_15();
23
24 /**
25 * Instance of [LocalSourcePredicate] that always returns `true`.
26 */
27 static final LocalSourcePredicate _TRUE = new LocalSourcePredicate_16();
28
29 /**
30 * Instance of [LocalSourcePredicate] that returns `true` for all [Source]s
31 * except of SDK.
32 */
33 static final LocalSourcePredicate _NOT_SDK = new LocalSourcePredicate_17();
34
35 /**
36 * Determines if the given [Source] is local.
37 *
38 * @param source the [Source] to analyze
39 * @return `true` if the given [Source] is local
40 */
41 bool isLocal(Source source);
42 }
43
44 class LocalSourcePredicate_15 implements LocalSourcePredicate {
45 bool isLocal(Source source) => false;
46 }
47
48 class LocalSourcePredicate_16 implements LocalSourcePredicate {
49 bool isLocal(Source source) => true;
50 }
51
52 class LocalSourcePredicate_17 implements LocalSourcePredicate {
53 bool isLocal(Source source) => source.uriKind != UriKind.DART_URI;
54 }
55
56 /**
13 * 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.
14 * 58 *
15 * @coverage dart.engine.source 59 * @coverage dart.engine.source
16 */ 60 */
17 class FileBasedSource implements Source { 61 class FileBasedSource implements Source {
18 /** 62 /**
19 * The content cache used to access the contents of this source if they have b een overridden from 63 * The content cache used to access the contents of this source if they have b een overridden from
20 * what is on disk or cached. 64 * what is on disk or cached.
21 */ 65 */
22 ContentCache _contentCache; 66 ContentCache _contentCache;
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 return null; 404 return null;
361 } 405 }
362 406
363 Source resolveAbsolute(ContentCache contentCache, Uri uri) { 407 Source resolveAbsolute(ContentCache contentCache, Uri uri) {
364 if (!isFileUri(uri)) { 408 if (!isFileUri(uri)) {
365 return null; 409 return null;
366 } 410 }
367 return new FileBasedSource.con1(contentCache, new JavaFile.fromUri(uri)); 411 return new FileBasedSource.con1(contentCache, new JavaFile.fromUri(uri));
368 } 412 }
369 } 413 }
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