| 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 library analyzer.src.generated.engine; | 5 library analyzer.src.generated.engine; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 */ | 339 */ |
| 340 CompilationUnitElement getCompilationUnitElement( | 340 CompilationUnitElement getCompilationUnitElement( |
| 341 Source unitSource, Source librarySource); | 341 Source unitSource, Source librarySource); |
| 342 | 342 |
| 343 /** | 343 /** |
| 344 * Return configuration data associated with the given key or the [key]'s | 344 * Return configuration data associated with the given key or the [key]'s |
| 345 * default value if no state has been associated. | 345 * default value if no state has been associated. |
| 346 * | 346 * |
| 347 * See [setConfigurationData]. | 347 * See [setConfigurationData]. |
| 348 */ | 348 */ |
| 349 Object getConfigurationData(ResultDescriptor key); | 349 Object/*=V*/ getConfigurationData/*<V>*/(ResultDescriptor/*<V>*/ key); |
| 350 | 350 |
| 351 /** | 351 /** |
| 352 * Return the contents and timestamp of the given [source]. | 352 * Return the contents and timestamp of the given [source]. |
| 353 * | 353 * |
| 354 * This method should be used rather than the method [Source.getContents] | 354 * This method should be used rather than the method [Source.getContents] |
| 355 * because contexts can have local overrides of the content of a source that | 355 * because contexts can have local overrides of the content of a source that |
| 356 * the source is not aware of. | 356 * the source is not aware of. |
| 357 */ | 357 */ |
| 358 TimestampedData<String> getContents(Source source); | 358 TimestampedData<String> getContents(Source source); |
| 359 | 359 |
| (...skipping 2188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2548 * The data that was created from the source. | 2548 * The data that was created from the source. |
| 2549 */ | 2549 */ |
| 2550 final E data; | 2550 final E data; |
| 2551 | 2551 |
| 2552 /** | 2552 /** |
| 2553 * Initialize a newly created holder to associate the given [data] with the | 2553 * Initialize a newly created holder to associate the given [data] with the |
| 2554 * given [modificationTime]. | 2554 * given [modificationTime]. |
| 2555 */ | 2555 */ |
| 2556 TimestampedData(this.modificationTime, this.data); | 2556 TimestampedData(this.modificationTime, this.data); |
| 2557 } | 2557 } |
| OLD | NEW |