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

Unified Diff: dart/pkg/compiler/lib/src/script.dart

Issue 815123002: Incremental compilation of libraries with multiple parts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments. Created 6 years 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 | dart/pkg/dart2js_incremental/lib/library_updater.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/compiler/lib/src/script.dart
diff --git a/dart/pkg/compiler/lib/src/script.dart b/dart/pkg/compiler/lib/src/script.dart
index 9ceafb468094b622877a28b7e9c45a18487293f6..54bd63153254e7867f878e27d72e10211eaa71b6 100644
--- a/dart/pkg/compiler/lib/src/script.dart
+++ b/dart/pkg/compiler/lib/src/script.dart
@@ -26,4 +26,9 @@ class Script {
String get text => (file == null) ? null : file.slowText();
String get name => (file == null) ? null : file.filename;
+
+ /// Creates a new [Script] with the same URIs, but new content ([file]).
+ Script copyWithFile(SourceFile file) {
+ return new Script(readableUri, resourceUri, file);
+ }
}
« no previous file with comments | « no previous file | dart/pkg/dart2js_incremental/lib/library_updater.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698