| 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 {@code SourceFactory} resolve possibly relative URI's
against an existing{@link Source source}. | 8 * Instances of the class {@code SourceFactory} resolve possibly relative URI's
against an existing{@link Source source}. |
| 9 * @coverage dart.engine.source | 9 * @coverage dart.engine.source |
| 10 */ | 10 */ |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 /** | 257 /** |
| 258 * The interface {@code Source} defines the behavior of objects representing sou
rce code that can be | 258 * The interface {@code Source} defines the behavior of objects representing sou
rce code that can be |
| 259 * compiled. | 259 * compiled. |
| 260 * @coverage dart.engine.source | 260 * @coverage dart.engine.source |
| 261 */ | 261 */ |
| 262 abstract class Source { | 262 abstract class Source { |
| 263 | 263 |
| 264 /** | 264 /** |
| 265 * An empty array of sources. | 265 * An empty array of sources. |
| 266 */ | 266 */ |
| 267 static List<Source> EMPTY_ARRAY = new List<Source>(0); | 267 static final List<Source> EMPTY_ARRAY = new List<Source>(0); |
| 268 | 268 |
| 269 /** | 269 /** |
| 270 * Return {@code true} if the given object is a source that represents the sam
e source code as | 270 * Return {@code true} if the given object is a source that represents the sam
e source code as |
| 271 * this source. | 271 * this source. |
| 272 * @param object the object to be compared with this object | 272 * @param object the object to be compared with this object |
| 273 * @return {@code true} if the given object is a source that represents the sa
me source code as | 273 * @return {@code true} if the given object is a source that represents the sa
me source code as |
| 274 * this source | 274 * this source |
| 275 * @see Object#equals(Object) | 275 * @see Object#equals(Object) |
| 276 */ | 276 */ |
| 277 bool operator ==(Object object); | 277 bool operator ==(Object object); |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 819 void setContents(Source source, String contents) { | 819 void setContents(Source source, String contents) { |
| 820 if (contents == null) { | 820 if (contents == null) { |
| 821 _contentMap.remove(source); | 821 _contentMap.remove(source); |
| 822 _stampMap.remove(source); | 822 _stampMap.remove(source); |
| 823 } else { | 823 } else { |
| 824 _contentMap[source] = contents; | 824 _contentMap[source] = contents; |
| 825 _stampMap[source] = JavaSystem.currentTimeMillis(); | 825 _stampMap[source] = JavaSystem.currentTimeMillis(); |
| 826 } | 826 } |
| 827 } | 827 } |
| 828 } | 828 } |
| OLD | NEW |