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; | 8 import 'dart:collection' show HashSet; |
9 | 9 |
10 import 'package:analyzer/analyzer.dart' show parseDirectives; | 10 import 'package:analyzer/analyzer.dart' show parseDirectives; |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 class DependencyGraphError extends MessageWithSpan { | 458 class DependencyGraphError extends MessageWithSpan { |
459 const DependencyGraphError(String message, SourceSpan span) | 459 const DependencyGraphError(String message, SourceSpan span) |
460 : super(message, Level.SEVERE, span); | 460 : super(message, Level.SEVERE, span); |
461 } | 461 } |
462 | 462 |
463 /// Runtime files added to all applications when running the compiler in the | 463 /// Runtime files added to all applications when running the compiler in the |
464 /// command line. | 464 /// command line. |
465 const defaultRuntimeFiles = const [ | 465 const defaultRuntimeFiles = const [ |
466 'harmony_feature_check.js', | 466 'harmony_feature_check.js', |
467 'dart_runtime.js', | 467 'dart_runtime.js', |
468 'dart_core.js' | 468 'dart/core.js', |
| 469 'dart/math.js' |
469 ]; | 470 ]; |
470 | 471 |
471 /// Runtime files added to applications when running in server mode. | 472 /// Runtime files added to applications when running in server mode. |
472 final runtimeFilesForServerMode = new List<String>.from(defaultRuntimeFiles) | 473 final runtimeFilesForServerMode = new List<String>.from(defaultRuntimeFiles) |
473 ..addAll(const ['messages_widget.js', 'messages.css']); | 474 ..addAll(const ['messages_widget.js', 'messages.css']); |
474 | 475 |
475 final _log = new Logger('dev_compiler.dependency_graph'); | 476 final _log = new Logger('dev_compiler.dependency_graph'); |
OLD | NEW |