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

Unified Diff: frog/world.dart

Issue 8769021: Get html-diff running again. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix the frog/world change. Created 9 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 | « frog/frogsh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/world.dart
diff --git a/frog/world.dart b/frog/world.dart
index 520d26d0940f1189e860457a333bfb532e9e79cd..cbd5e62c7d7c74cbc016e9a8007cca22bf7b97ba 100644
--- a/frog/world.dart
+++ b/frog/world.dart
@@ -285,7 +285,7 @@ class World {
}
void runCompilationPhases() {
- final lib = withTiming('first pass', processDartScript);
+ final lib = withTiming('first pass', () => processDartScript());
withTiming('resolve top level', resolveAll);
if (experimentalAwaitPhase != null) {
withTiming('await translation', experimentalAwaitPhase);
@@ -340,8 +340,9 @@ class World {
}
}
- Library processDartScript() {
- Library library = getOrAddLibrary(options.dartScript);
+ Library processDartScript([String script = null]) {
+ if (script == null) script = options.dartScript;
+ Library library = getOrAddLibrary(script);
process();
return library;
}
« no previous file with comments | « frog/frogsh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698