Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Unified Diff: pkg/analysis_server/lib/src/status/get_handler.dart

Issue 2229603003: Extract unresolved AST parsing (PARSED_UNIT1) from full parsing, which includes UriBasedDirective(s… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update task graph. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/doc/tasks.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/status/get_handler.dart
diff --git a/pkg/analysis_server/lib/src/status/get_handler.dart b/pkg/analysis_server/lib/src/status/get_handler.dart
index 11cccffc1e21e8adefaa8753068874e7b23997a2..406131eca60f2431f728b80dd0aba1b3a54452ac 100644
--- a/pkg/analysis_server/lib/src/status/get_handler.dart
+++ b/pkg/analysis_server/lib/src/status/get_handler.dart
@@ -435,7 +435,11 @@ class GetHandler {
* Return any AST structure stored in the given [entry].
*/
CompilationUnit _getAnyAst(CacheEntry entry) {
- CompilationUnit unit = entry.getValue(PARSED_UNIT);
+ CompilationUnit unit = entry.getValue(PARSED_UNIT1);
+ if (unit != null) {
+ return unit;
+ }
+ unit = entry.getValue(PARSED_UNIT);
if (unit != null) {
return unit;
}
@@ -526,6 +530,7 @@ class GetHandler {
results.add(LIBRARY_ELEMENT);
results.add(LIBRARY_ERRORS_READY);
results.add(PARSE_ERRORS);
+ results.add(PARSED_UNIT1);
results.add(PARSED_UNIT);
results.add(REFERENCED_NAMES);
results.add(SCAN_ERRORS);
« no previous file with comments | « no previous file | pkg/analyzer/doc/tasks.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698