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

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

Issue 12803014: New Analysis Engine translation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 'dart:uri'; 6 import 'dart:uri';
7 import 'java_core.dart'; 7 import 'java_core.dart';
8 import 'engine.dart' show AnalysisContext; 8 import 'engine.dart' show AnalysisContext;
9 9
10 /** 10 /**
(...skipping 12 matching lines...) Expand all
23 /** 23 /**
24 * A cache of content used to override the default content of a source. 24 * A cache of content used to override the default content of a source.
25 */ 25 */
26 ContentCache _contentCache; 26 ContentCache _contentCache;
27 /** 27 /**
28 * Initialize a newly created source factory. 28 * Initialize a newly created source factory.
29 * @param contentCache the cache holding content used to override the default content of a source. 29 * @param contentCache the cache holding content used to override the default content of a source.
30 * @param resolvers the resolvers used to resolve absolute URI's 30 * @param resolvers the resolvers used to resolve absolute URI's
31 */ 31 */
32 SourceFactory.con1(ContentCache contentCache2, List<UriResolver> resolvers2) { 32 SourceFactory.con1(ContentCache contentCache2, List<UriResolver> resolvers2) {
33 _jtd_constructor_302_impl(contentCache2, resolvers2); 33 _jtd_constructor_306_impl(contentCache2, resolvers2);
34 } 34 }
35 _jtd_constructor_302_impl(ContentCache contentCache2, List<UriResolver> resolv ers2) { 35 _jtd_constructor_306_impl(ContentCache contentCache2, List<UriResolver> resolv ers2) {
36 this._contentCache = contentCache2; 36 this._contentCache = contentCache2;
37 this._resolvers = resolvers2; 37 this._resolvers = resolvers2;
38 } 38 }
39 /** 39 /**
40 * Initialize a newly created source factory. 40 * Initialize a newly created source factory.
41 * @param resolvers the resolvers used to resolve absolute URI's 41 * @param resolvers the resolvers used to resolve absolute URI's
42 */ 42 */
43 SourceFactory.con2(List<UriResolver> resolvers) { 43 SourceFactory.con2(List<UriResolver> resolvers) {
44 _jtd_constructor_303_impl(resolvers); 44 _jtd_constructor_307_impl(resolvers);
45 } 45 }
46 _jtd_constructor_303_impl(List<UriResolver> resolvers) { 46 _jtd_constructor_307_impl(List<UriResolver> resolvers) {
47 _jtd_constructor_302_impl(new ContentCache(), resolvers); 47 _jtd_constructor_306_impl(new ContentCache(), resolvers);
48 } 48 }
49 /** 49 /**
50 * Return a source object representing the given absolute URI, or {@code null} if the URI is not a 50 * Return a source object representing the given absolute URI, or {@code null} if the URI is not a
51 * valid URI or if it is not an absolute URI. 51 * valid URI or if it is not an absolute URI.
52 * @param absoluteUri the absolute URI to be resolved 52 * @param absoluteUri the absolute URI to be resolved
53 * @return a source object representing the absolute URI 53 * @return a source object representing the absolute URI
54 */ 54 */
55 Source forUri(String absoluteUri) { 55 Source forUri(String absoluteUri) {
56 try { 56 try {
57 Uri uri = new Uri(absoluteUri); 57 Uri uri = new Uri(absoluteUri);
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 void setContents(Source source, String contents) { 564 void setContents(Source source, String contents) {
565 if (contents == null) { 565 if (contents == null) {
566 _contentMap.remove(source); 566 _contentMap.remove(source);
567 _stampMap.remove(source); 567 _stampMap.remove(source);
568 } else { 568 } else {
569 _contentMap[source] = contents; 569 _contentMap[source] = contents;
570 _stampMap[source] = JavaSystem.currentTimeMillis(); 570 _stampMap[source] = JavaSystem.currentTimeMillis();
571 } 571 }
572 } 572 }
573 } 573 }
OLDNEW
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/sdk.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