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

Side by Side Diff: lib/compiler/compiler.dart

Issue 10471002: Avoid repeated declaration of the same loop variable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | lib/compiler/implementation/dart2js.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #library('compiler'); 5 #library('compiler');
6 6
7 #import('dart:uri'); 7 #import('dart:uri');
8 #import('implementation/apiimpl.dart'); 8 #import('implementation/apiimpl.dart');
9 9
10 // Unless explicitly allowed, passing null for any argument to the 10 // Unless explicitly allowed, passing null for any argument to the
(...skipping 28 matching lines...) Expand all
39 Future<String> compile(Uri script, 39 Future<String> compile(Uri script,
40 Uri libraryRoot, 40 Uri libraryRoot,
41 Uri packageRoot, 41 Uri packageRoot,
42 ReadUriFromString provider, 42 ReadUriFromString provider,
43 DiagnosticHandler handler, 43 DiagnosticHandler handler,
44 [List<String> options = const []]) { 44 [List<String> options = const []]) {
45 Compiler compiler = new Compiler(provider, handler, libraryRoot, packageRoot, 45 Compiler compiler = new Compiler(provider, handler, libraryRoot, packageRoot,
46 options); 46 options);
47 compiler.run(script); 47 compiler.run(script);
48 String code = compiler.assembledCode; 48 String code = compiler.assembledCode;
49 Completer<String> completer = new Completer<String>(); 49 return new Future.immediate(code);
50 completer.complete(code);
51 return completer.future;
52 } 50 }
OLDNEW
« no previous file with comments | « no previous file | lib/compiler/implementation/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698