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

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

Issue 1424133007: Compile package:js.{rest, spread} helpers (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Use freshly released version 0.6.0-beta.6 of package:js ran formatter Created 5 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 unified diff | Download patch
« no previous file with comments | « lib/src/codegen/js_interop.dart ('k') | pubspec.yaml » ('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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 /// Command line tool to run the checker on a Dart program. 5 /// Command line tool to run the checker on a Dart program.
6 library dev_compiler.src.compiler; 6 library dev_compiler.src.compiler;
7 7
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:collection'; 9 import 'dart:collection';
10 import 'dart:convert' show JSON; 10 import 'dart:convert' show JSON;
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 } else { 472 } else {
473 // Skip hints for now. 473 // Skip hints for now.
474 } 474 }
475 } 475 }
476 return failure; 476 return failure;
477 } 477 }
478 } 478 }
479 479
480 AnalysisErrorListener createErrorReporter( 480 AnalysisErrorListener createErrorReporter(
481 AnalysisContext context, CompilerOptions options) { 481 AnalysisContext context, CompilerOptions options) {
482 return options.htmlReport ? new HtmlReporter(context) : options.dumpInfo 482 return options.htmlReport
483 ? new SummaryReporter(context, options.logLevel) 483 ? new HtmlReporter(context)
484 : new LogReporter(context, useColors: options.useColors); 484 : options.dumpInfo
485 ? new SummaryReporter(context, options.logLevel)
486 : new LogReporter(context, useColors: options.useColors);
485 } 487 }
486 488
487 // TODO(jmesserly): find a better home for these. 489 // TODO(jmesserly): find a better home for these.
488 /// Curated order to minimize lazy classes needed by dart:core and its 490 /// Curated order to minimize lazy classes needed by dart:core and its
489 /// transitive SDK imports. 491 /// transitive SDK imports.
490 const corelibOrder = const [ 492 const corelibOrder = const [
491 'dart.core', 493 'dart.core',
492 'dart.collection', 494 'dart.collection',
493 'dart._internal', 495 'dart._internal',
494 'dart.math', 496 'dart.math',
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 'dart/_rtti.js', 528 'dart/_rtti.js',
527 'dart/_classes.js', 529 'dart/_classes.js',
528 'dart/_operations.js', 530 'dart/_operations.js',
529 'dart/_runtime.js', 531 'dart/_runtime.js',
530 ]; 532 ];
531 files.addAll(corelibOrder.map((l) => l.replaceAll('.', '/') + '.js')); 533 files.addAll(corelibOrder.map((l) => l.replaceAll('.', '/') + '.js'));
532 return files; 534 return files;
533 }(); 535 }();
534 536
535 final _log = new Logger('dev_compiler.src.compiler'); 537 final _log = new Logger('dev_compiler.src.compiler');
OLDNEW
« no previous file with comments | « lib/src/codegen/js_interop.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698