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

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

Issue 26096002: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 library engine.source; 3 library engine.source;
4 import 'java_core.dart'; 4 import 'java_core.dart';
5 import 'sdk.dart' show DartSdk; 5 import 'sdk.dart' show DartSdk;
6 import 'engine.dart' show AnalysisContext; 6 import 'engine.dart' show AnalysisContext;
7 /** 7 /**
8 * Instances of the class `SourceFactory` resolve possibly relative URI's agains t an existing 8 * Instances of the class `SourceFactory` resolve possibly relative URI's agains t an existing
9 * [Source]. 9 * [Source].
10 * 10 *
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 } 81 }
82 try { 82 try {
83 Uri uri = parseUriWithException(encoding.substring(1)); 83 Uri uri = parseUriWithException(encoding.substring(1));
84 for (UriResolver resolver in _resolvers) { 84 for (UriResolver resolver in _resolvers) {
85 Source result = resolver.fromEncoding(contentCache, kind, uri); 85 Source result = resolver.fromEncoding(contentCache, kind, uri);
86 if (result != null) { 86 if (result != null) {
87 return result; 87 return result;
88 } 88 }
89 } 89 }
90 throw new IllegalArgumentException("No resolver for kind: ${kind}"); 90 throw new IllegalArgumentException("No resolver for kind: ${kind}");
91 } catch (exception) { 91 } on JavaException catch (exception) {
92 throw new IllegalArgumentException("Invalid URI in encoding"); 92 throw new IllegalArgumentException("Invalid URI in encoding");
93 } 93 }
94 } 94 }
95 95
96 /** 96 /**
97 * Return the [DartSdk] associated with this [SourceFactory], or `null` if the re 97 * Return the [DartSdk] associated with this [SourceFactory], or `null` if the re
98 * is no such SDK. 98 * is no such SDK.
99 * 99 *
100 * @return the [DartSdk] associated with this [SourceFactory], or `null` if 100 * @return the [DartSdk] associated with this [SourceFactory], or `null` if
101 * there is no such SDK 101 * there is no such SDK
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 if (contents == null) { 801 if (contents == null) {
802 _stampMap.remove(source); 802 _stampMap.remove(source);
803 return _contentMap.remove(source) != null; 803 return _contentMap.remove(source) != null;
804 } else { 804 } else {
805 _stampMap[source] = JavaSystem.currentTimeMillis(); 805 _stampMap[source] = JavaSystem.currentTimeMillis();
806 String originalContents = javaMapPut(_contentMap, source, contents); 806 String originalContents = javaMapPut(_contentMap, source, contents);
807 return contents != originalContents; 807 return contents != originalContents;
808 } 808 }
809 } 809 }
810 } 810 }
OLDNEW
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/sdk_io.dart ('k') | pkg/analyzer_experimental/lib/src/generated/source_io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698