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

Unified Diff: samples/leap/leap_leg.dart

Issue 10908066: - Removed named constructor Stopwatch.start() due to conflict with instance methods start(). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
Index: samples/leap/leap_leg.dart
===================================================================
--- samples/leap/leap_leg.dart (revision 11786)
+++ samples/leap/leap_leg.dart (working copy)
@@ -124,7 +124,7 @@
Runner() : compiler = new LeapCompiler();
String init() {
- Stopwatch sw = new Stopwatch.start();
+ Stopwatch sw = new Stopwatch()..start();
compiler.scanBuiltinLibraries();
sw.stop();
return 'Scanned core libraries in ${sw.elapsedInMs()}ms';
@@ -133,7 +133,7 @@
String update(String codeText) {
StringBuffer sb = new StringBuffer();
- Stopwatch sw = new Stopwatch.start();
+ Stopwatch sw = new Stopwatch()..start();
LibraryElement e = compile(new LeapScript(codeText));
@@ -261,7 +261,7 @@
}
Element runSelective(Script script) {
- Stopwatch sw = new Stopwatch.start();
+ Stopwatch sw = new Stopwatch()..start();
Element e;
try {
e = runCompilerSelective(script);

Powered by Google App Engine
This is Rietveld 408576698