| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.source; | 8 library engine.source; |
| 9 | 9 |
| 10 import 'java_core.dart'; | 10 import 'java_core.dart'; |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 * Clients should consider using the the method [AnalysisContext#getContents] | 302 * Clients should consider using the the method [AnalysisContext#getContents] |
| 303 * because contexts can have local overrides of the content of a source that t
he source is not | 303 * because contexts can have local overrides of the content of a source that t
he source is not |
| 304 * aware of. | 304 * aware of. |
| 305 * | 305 * |
| 306 * @return the contents and timestamp of the source | 306 * @return the contents and timestamp of the source |
| 307 * @throws Exception if the contents of this source could not be accessed | 307 * @throws Exception if the contents of this source could not be accessed |
| 308 */ | 308 */ |
| 309 TimestampedData<String> get contents; | 309 TimestampedData<String> get contents; |
| 310 | 310 |
| 311 /** | 311 /** |
| 312 * Get the contents of this source and pass it to the given content receiver. | |
| 313 * | |
| 314 * Clients should consider using the the method | |
| 315 * [AnalysisContext#getContentsToReceiver] because contexts can have local | |
| 316 * overrides of the content of a source that the source is not aware of. | |
| 317 * | |
| 318 * @param receiver the content receiver to which the content of this source wi
ll be passed | |
| 319 * @throws Exception if the contents of this source could not be accessed | |
| 320 */ | |
| 321 void getContentsToReceiver(Source_ContentReceiver receiver); | |
| 322 | |
| 323 /** | |
| 324 * Return an encoded representation of this source that can be used to create
a source that is | 312 * Return an encoded representation of this source that can be used to create
a source that is |
| 325 * equal to this source. | 313 * equal to this source. |
| 326 * | 314 * |
| 327 * @return an encoded representation of this source | 315 * @return an encoded representation of this source |
| 328 * @see SourceFactory#fromEncoding(String) | 316 * @see SourceFactory#fromEncoding(String) |
| 329 */ | 317 */ |
| 330 String get encoding; | 318 String get encoding; |
| 331 | 319 |
| 332 /** | 320 /** |
| 333 * Return the full (long) version of the name that can be displayed to the use
r to denote this | 321 * Return the full (long) version of the name that can be displayed to the use
r to denote this |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 int oldStamp = javaMapPut(_stampMap, source, newStamp); | 819 int oldStamp = javaMapPut(_stampMap, source, newStamp); |
| 832 // Occasionally, if this method is called in rapid succession, the timesta
mps are equal. | 820 // Occasionally, if this method is called in rapid succession, the timesta
mps are equal. |
| 833 // Guard against this by artificially incrementing the new timestamp | 821 // Guard against this by artificially incrementing the new timestamp |
| 834 if (newStamp == oldStamp) { | 822 if (newStamp == oldStamp) { |
| 835 _stampMap[source] = newStamp + 1; | 823 _stampMap[source] = newStamp + 1; |
| 836 } | 824 } |
| 837 return javaMapPut(_contentMap, source, contents); | 825 return javaMapPut(_contentMap, source, contents); |
| 838 } | 826 } |
| 839 } | 827 } |
| 840 } | 828 } |
| OLD | NEW |