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 2123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2134 * | 2134 * |
2135 * If the context knows how to provide the value, it sets the value into | 2135 * If the context knows how to provide the value, it sets the value into |
2136 * the [entry] with all required dependencies, and returns `true`. | 2136 * the [entry] with all required dependencies, and returns `true`. |
2137 * | 2137 * |
2138 * Otherwise, it returns `false` to indicate that the result should be | 2138 * Otherwise, it returns `false` to indicate that the result should be |
2139 * computed as usually. | 2139 * computed as usually. |
2140 */ | 2140 */ |
2141 bool aboutToComputeResult(CacheEntry entry, ResultDescriptor result); | 2141 bool aboutToComputeResult(CacheEntry entry, ResultDescriptor result); |
2142 | 2142 |
2143 /** | 2143 /** |
| 2144 * Return the canonical instance of the given [target]. |
| 2145 */ |
| 2146 AnalysisTarget canonicalizeTarget(AnalysisTarget target); |
| 2147 |
| 2148 /** |
2144 * Return a list containing the sources of the libraries that are exported by | 2149 * Return a list containing the sources of the libraries that are exported by |
2145 * the library with the given [source]. The list will be empty if the given | 2150 * the library with the given [source]. The list will be empty if the given |
2146 * source is invalid, if the given source does not represent a library, or if | 2151 * source is invalid, if the given source does not represent a library, or if |
2147 * the library does not export any other libraries. | 2152 * the library does not export any other libraries. |
2148 * | 2153 * |
2149 * Throws an [AnalysisException] if the exported libraries could not be | 2154 * Throws an [AnalysisException] if the exported libraries could not be |
2150 * computed. | 2155 * computed. |
2151 */ | 2156 */ |
2152 List<Source> computeExportedLibraries(Source source); | 2157 List<Source> computeExportedLibraries(Source source); |
2153 | 2158 |
(...skipping 19 matching lines...) Expand all Loading... |
2173 * Return the cache entry associated with the given [target]. | 2178 * Return the cache entry associated with the given [target]. |
2174 */ | 2179 */ |
2175 CacheEntry getCacheEntry(AnalysisTarget target); | 2180 CacheEntry getCacheEntry(AnalysisTarget target); |
2176 | 2181 |
2177 /** | 2182 /** |
2178 * Return context that owns the given [source]. | 2183 * Return context that owns the given [source]. |
2179 */ | 2184 */ |
2180 InternalAnalysisContext getContextFor(Source source); | 2185 InternalAnalysisContext getContextFor(Source source); |
2181 | 2186 |
2182 /** | 2187 /** |
| 2188 * Return a library specific unit representing the given [unit] as analyzed in |
| 2189 * the given [library]. |
| 2190 */ |
| 2191 LibrarySpecificUnit getLibrarySpecificUnit(Source library, Source unit); |
| 2192 |
| 2193 /** |
2183 * Return a change notice for the given [source], creating one if one does not | 2194 * Return a change notice for the given [source], creating one if one does not |
2184 * already exist. | 2195 * already exist. |
2185 */ | 2196 */ |
2186 ChangeNoticeImpl getNotice(Source source); | 2197 ChangeNoticeImpl getNotice(Source source); |
2187 | 2198 |
2188 /** | 2199 /** |
2189 * Return a namespace containing mappings for all of the public names defined | 2200 * Return a namespace containing mappings for all of the public names defined |
2190 * by the given [library]. | 2201 * by the given [library]. |
2191 */ | 2202 */ |
2192 Namespace getPublicNamespace(LibraryElement library); | 2203 Namespace getPublicNamespace(LibraryElement library); |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2713 * The data that was created from the source. | 2724 * The data that was created from the source. |
2714 */ | 2725 */ |
2715 final E data; | 2726 final E data; |
2716 | 2727 |
2717 /** | 2728 /** |
2718 * Initialize a newly created holder to associate the given [data] with the | 2729 * Initialize a newly created holder to associate the given [data] with the |
2719 * given [modificationTime]. | 2730 * given [modificationTime]. |
2720 */ | 2731 */ |
2721 TimestampedData(this.modificationTime, this.data); | 2732 TimestampedData(this.modificationTime, this.data); |
2722 } | 2733 } |
OLD | NEW |