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

Unified Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 696343002: Fix early erasure of resolution data (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/engine.dart
diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart
index deab79f47ba84fa92c352c5398a0a2b9469fe3ca..2d8c34d0ccb64bcdf303ce777b9305ba8f2de0ae 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -8189,13 +8189,11 @@ class DartEntry extends SourceEntry {
while (state != null) {
if (state.getState(BUILT_UNIT) == CacheState.VALID) {
CompilationUnit unit = state.getValue(BUILT_UNIT);
- ResolutionEraser.erase(unit);
- setValue(PARSED_UNIT, unit);
+ setValue(PARSED_UNIT, unit.accept(new AstCloner()));
break;
} else if (state.getState(RESOLVED_UNIT) == CacheState.VALID) {
CompilationUnit unit = state.getValue(RESOLVED_UNIT);
- ResolutionEraser.erase(unit);
- setValue(PARSED_UNIT, unit);
+ setValue(PARSED_UNIT, unit.accept(new AstCloner()));
break;
}
state = state._nextState;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698