| 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 /// Tracks the shape of the import/export graph and dependencies between files. | 5 /// Tracks the shape of the import/export graph and dependencies between files. |
| 6 library dev_compiler.src.dependency_graph; | 6 library dev_compiler.src.dependency_graph; |
| 7 | 7 |
| 8 import 'dart:collection' show HashSet, HashMap; | 8 import 'dart:collection' show HashSet, HashMap; |
| 9 | 9 |
| 10 import 'package:analyzer/analyzer.dart' show parseDirectives; | 10 import 'package:analyzer/analyzer.dart' show parseDirectives; |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 action(node); | 492 action(node); |
| 493 } | 493 } |
| 494 helper(start); | 494 helper(start); |
| 495 } | 495 } |
| 496 | 496 |
| 497 bool _same(Set a, Set b) => a.length == b.length && a.containsAll(b); | 497 bool _same(Set a, Set b) => a.length == b.length && a.containsAll(b); |
| 498 | 498 |
| 499 /// Runtime files added to all applications when running the compiler in the | 499 /// Runtime files added to all applications when running the compiler in the |
| 500 /// command line. | 500 /// command line. |
| 501 final defaultRuntimeFiles = () { | 501 final defaultRuntimeFiles = () { |
| 502 var files = ['harmony_feature_check.js', 'dart_runtime.js',]; | 502 var files = [ |
| 503 'harmony_feature_check.js', |
| 504 'dart_utils.js', |
| 505 'dart_library.js', |
| 506 '_errors.js', |
| 507 '_types.js', |
| 508 '_rtti.js', |
| 509 '_classes.js', |
| 510 '_operations.js', |
| 511 'dart_runtime.js', |
| 512 ]; |
| 503 files.addAll(corelibOrder.map((l) => l.replaceAll('.', '/') + '.js')); | 513 files.addAll(corelibOrder.map((l) => l.replaceAll('.', '/') + '.js')); |
| 504 return files; | 514 return files; |
| 505 }(); | 515 }(); |
| 506 | 516 |
| 507 /// Curated order to minimize lazy classes needed by dart:core and its | 517 /// Curated order to minimize lazy classes needed by dart:core and its |
| 508 /// transitive SDK imports. | 518 /// transitive SDK imports. |
| 509 const corelibOrder = const [ | 519 const corelibOrder = const [ |
| 510 'dart.core', | 520 'dart.core', |
| 511 'dart.collection', | 521 'dart.collection', |
| 512 'dart._internal', | 522 'dart._internal', |
| (...skipping 11 matching lines...) Expand all Loading... |
| 524 'dart.convert', | 534 'dart.convert', |
| 525 // _foreign_helper is not included, as it only defines the JS builtin that | 535 // _foreign_helper is not included, as it only defines the JS builtin that |
| 526 // the compiler handles at compile time. | 536 // the compiler handles at compile time. |
| 527 ]; | 537 ]; |
| 528 | 538 |
| 529 /// Runtime files added to applications when running in server mode. | 539 /// Runtime files added to applications when running in server mode. |
| 530 final runtimeFilesForServerMode = new List<String>.from(defaultRuntimeFiles) | 540 final runtimeFilesForServerMode = new List<String>.from(defaultRuntimeFiles) |
| 531 ..addAll(const ['messages_widget.js', 'messages.css']); | 541 ..addAll(const ['messages_widget.js', 'messages.css']); |
| 532 | 542 |
| 533 final _log = new Logger('dev_compiler.dependency_graph'); | 543 final _log = new Logger('dev_compiler.dependency_graph'); |
| OLD | NEW |