| 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/element/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
| (...skipping 1869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1880 * Sets the [TypeProvider] for this context. | 1880 * Sets the [TypeProvider] for this context. |
| 1881 */ | 1881 */ |
| 1882 void set typeProvider(TypeProvider typeProvider); | 1882 void set typeProvider(TypeProvider typeProvider); |
| 1883 | 1883 |
| 1884 /** | 1884 /** |
| 1885 * A list of all [WorkManager]s used by this context. | 1885 * A list of all [WorkManager]s used by this context. |
| 1886 */ | 1886 */ |
| 1887 List<WorkManager> get workManagers; | 1887 List<WorkManager> get workManagers; |
| 1888 | 1888 |
| 1889 /** | 1889 /** |
| 1890 * This method is invoked when the state of the [result] of the [entry] is |
| 1891 * [CacheState.INVALID], so it is about to be computed. |
| 1892 * |
| 1893 * If the context knows how to provide the value, it sets the value into |
| 1894 * the [entry] with all required dependencies, and returns `true`. |
| 1895 * |
| 1896 * Otherwise, it returns `false` to indicate that the result should be |
| 1897 * computed as usually. |
| 1898 */ |
| 1899 bool aboutToComputeResult(CacheEntry entry, ResultDescriptor result); |
| 1900 |
| 1901 /** |
| 1890 * Return a list containing the sources of the libraries that are exported by | 1902 * Return a list containing the sources of the libraries that are exported by |
| 1891 * the library with the given [source]. The list will be empty if the given | 1903 * the library with the given [source]. The list will be empty if the given |
| 1892 * source is invalid, if the given source does not represent a library, or if | 1904 * source is invalid, if the given source does not represent a library, or if |
| 1893 * the library does not export any other libraries. | 1905 * the library does not export any other libraries. |
| 1894 * | 1906 * |
| 1895 * Throws an [AnalysisException] if the exported libraries could not be | 1907 * Throws an [AnalysisException] if the exported libraries could not be |
| 1896 * computed. | 1908 * computed. |
| 1897 */ | 1909 */ |
| 1898 List<Source> computeExportedLibraries(Source source); | 1910 List<Source> computeExportedLibraries(Source source); |
| 1899 | 1911 |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2396 * The data that was created from the source. | 2408 * The data that was created from the source. |
| 2397 */ | 2409 */ |
| 2398 final E data; | 2410 final E data; |
| 2399 | 2411 |
| 2400 /** | 2412 /** |
| 2401 * Initialize a newly created holder to associate the given [data] with the | 2413 * Initialize a newly created holder to associate the given [data] with the |
| 2402 * given [modificationTime]. | 2414 * given [modificationTime]. |
| 2403 */ | 2415 */ |
| 2404 TimestampedData(this.modificationTime, this.data); | 2416 TimestampedData(this.modificationTime, this.data); |
| 2405 } | 2417 } |
| OLD | NEW |