| 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 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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 730 /** | 730 /** |
| 731 * Return the [DartSdk] against which URIs are to be resolved. | 731 * Return the [DartSdk] against which URIs are to be resolved. |
| 732 * | 732 * |
| 733 * @return the [DartSdk] against which URIs are to be resolved. | 733 * @return the [DartSdk] against which URIs are to be resolved. |
| 734 */ | 734 */ |
| 735 DartSdk get dartSdk => _sdk; | 735 DartSdk get dartSdk => _sdk; |
| 736 Source resolveAbsolute(ContentCache contentCache, Uri uri) { | 736 Source resolveAbsolute(ContentCache contentCache, Uri uri) { |
| 737 if (!isDartUri(uri)) { | 737 if (!isDartUri(uri)) { |
| 738 return null; | 738 return null; |
| 739 } | 739 } |
| 740 return _sdk.mapDartUri(contentCache, uri.toString()); | 740 return _sdk.mapDartUri(uri.toString()); |
| 741 } | 741 } |
| 742 } | 742 } |
| 743 /** | 743 /** |
| 744 * Instances of the class `LineInfo` encapsulate information about line and colu
mn information | 744 * Instances of the class `LineInfo` encapsulate information about line and colu
mn information |
| 745 * within a source file. | 745 * within a source file. |
| 746 * | 746 * |
| 747 * @coverage dart.engine.utilities | 747 * @coverage dart.engine.utilities |
| 748 */ | 748 */ |
| 749 class LineInfo { | 749 class LineInfo { |
| 750 | 750 |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 void setContents(Source source, String contents) { | 881 void setContents(Source source, String contents) { |
| 882 if (contents == null) { | 882 if (contents == null) { |
| 883 _contentMap.remove(source); | 883 _contentMap.remove(source); |
| 884 _stampMap.remove(source); | 884 _stampMap.remove(source); |
| 885 } else { | 885 } else { |
| 886 _contentMap[source] = contents; | 886 _contentMap[source] = contents; |
| 887 _stampMap[source] = JavaSystem.currentTimeMillis(); | 887 _stampMap[source] = JavaSystem.currentTimeMillis(); |
| 888 } | 888 } |
| 889 } | 889 } |
| 890 } | 890 } |
| OLD | NEW |