OLD | NEW |
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 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:collection'; | 8 import 'dart:collection'; |
9 import 'dart:convert' show JSON; | 9 import 'dart:convert' show JSON; |
10 import 'dart:math' as math; | 10 import 'dart:math' as math; |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 'dart:convert', | 507 'dart:convert', |
508 // TODO(jmesserly): these are not part of corelib library cycle, and shouldn't | 508 // TODO(jmesserly): these are not part of corelib library cycle, and shouldn't |
509 // be listed here. Instead, their source should be copied on demand if they | 509 // be listed here. Instead, their source should be copied on demand if they |
510 // are actually used by the application. | 510 // are actually used by the application. |
511 'dart:mirrors', | 511 'dart:mirrors', |
512 'dart:_js_mirrors', | 512 'dart:_js_mirrors', |
513 'dart:js', | 513 'dart:js', |
514 'dart:_metadata', | 514 'dart:_metadata', |
515 'dart:html', | 515 'dart:html', |
516 'dart:html_common', | 516 'dart:html_common', |
| 517 'dart:indexed_db', |
| 518 'dart:svg', |
| 519 'dart:web_audio', |
| 520 'dart:web_gl', |
| 521 'dart:web_sql', |
517 'dart:_debugger' | 522 'dart:_debugger' |
| 523 |
518 // _foreign_helper is not included, as it only defines the JS builtin that | 524 // _foreign_helper is not included, as it only defines the JS builtin that |
519 // the compiler handles at compile time. | 525 // the compiler handles at compile time. |
520 ].map(Uri.parse).toList(); | 526 ].map(Uri.parse).toList(); |
521 | 527 |
522 /// Runtime files added to all applications when running the compiler in the | 528 /// Runtime files added to all applications when running the compiler in the |
523 /// command line. | 529 /// command line. |
524 final defaultRuntimeFiles = () { | 530 final defaultRuntimeFiles = () { |
525 String coreToFile(Uri uri) => uri.toString().replaceAll(':', '/') + '.js'; | 531 String coreToFile(Uri uri) => uri.toString().replaceAll(':', '/') + '.js'; |
526 | 532 |
527 var files = [ | 533 var files = [ |
528 'harmony_feature_check.js', | 534 'harmony_feature_check.js', |
529 'dart_library.js', | 535 'dart_library.js', |
530 'dart/_runtime.js', | 536 'dart/_runtime.js', |
531 ]; | 537 ]; |
532 files.addAll(corelibOrder.map(coreToFile)); | 538 files.addAll(corelibOrder.map(coreToFile)); |
533 return files; | 539 return files; |
534 }(); | 540 }(); |
535 | 541 |
536 final _log = new Logger('dev_compiler.src.compiler'); | 542 final _log = new Logger('dev_compiler.src.compiler'); |
OLD | NEW |