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

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

Issue 1155543005: Prepare CompilationUnitElementDelta in IncrementalCompilationUnitElementBuilder. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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/lib/src/task/incremental_element_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/ast.dart
diff --git a/pkg/analyzer/lib/src/generated/ast.dart b/pkg/analyzer/lib/src/generated/ast.dart
index 3a2822f02b3ef02c6a5d1ac6dc23cc0ecaebcf18..61a3251440a26c36d9a0e22f169c560d9a146e39 100644
--- a/pkg/analyzer/lib/src/generated/ast.dart
+++ b/pkg/analyzer/lib/src/generated/ast.dart
@@ -4775,6 +4775,18 @@ class CompilationUnit extends AstNode {
return lastDirective.offset < firstDeclaration.offset;
}
+ /**
+ * Replaces contents of this [CompilationUnit] with the given [other].
+ */
+ void replaceWith(CompilationUnit other) {
Brian Wilkerson 2015/06/02 15:50:41 I really don't think we want to add this to the pu
scheglov 2015/06/02 17:13:11 Oops... You're right. Removing it.
+ beginToken = other.beginToken;
+ _scriptTag = other._scriptTag;
+ _directives = other._directives;
+ _declarations = other._declarations;
+ element = other.element;
+ lineInfo = other.lineInfo;
+ }
+
@override
accept(AstVisitor visitor) => visitor.visitCompilationUnit(this);
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/incremental_element_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698