| 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; |
| 11 import 'package:analyzer/src/generated/ast.dart' | 11 import 'package:analyzer/src/generated/ast.dart' |
| 12 show | 12 show |
| 13 AstNode, | 13 AstNode, |
| 14 CompilationUnit, | 14 CompilationUnit, |
| 15 ExportDirective, | 15 ExportDirective, |
| 16 Identifier, | 16 Identifier, |
| 17 ImportDirective, | 17 ImportDirective, |
| 18 LibraryDirective, | 18 LibraryDirective, |
| 19 PartDirective, | 19 PartDirective, |
| 20 PartOfDirective; | 20 PartOfDirective; |
| 21 import 'package:analyzer/src/generated/engine.dart' | 21 import 'package:analyzer/src/generated/engine.dart' |
| 22 show ParseDartTask, AnalysisContext; | 22 show ParseDartTask, AnalysisContext; |
| 23 import 'package:analyzer/src/generated/source.dart' show Source, SourceKind; | 23 import 'package:analyzer/src/generated/source.dart' show Source, SourceKind; |
| 24 import 'package:html5lib/dom.dart' show Document, Node; | 24 import 'package:html/dom.dart' show Document, Node; |
| 25 import 'package:html5lib/parser.dart' as html; | 25 import 'package:html/parser.dart' as html; |
| 26 import 'package:logging/logging.dart' show Logger, Level; | 26 import 'package:logging/logging.dart' show Logger, Level; |
| 27 import 'package:path/path.dart' as path; | 27 import 'package:path/path.dart' as path; |
| 28 import 'package:source_span/source_span.dart' show SourceSpan; | 28 import 'package:source_span/source_span.dart' show SourceSpan; |
| 29 | 29 |
| 30 import 'info.dart'; | 30 import 'info.dart'; |
| 31 import 'options.dart'; | 31 import 'options.dart'; |
| 32 import 'report.dart'; | 32 import 'report.dart'; |
| 33 import 'utils.dart'; | 33 import 'utils.dart'; |
| 34 | 34 |
| 35 /// Holds references to all source nodes in the import graph. This is mainly | 35 /// Holds references to all source nodes in the import graph. This is mainly |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 'dart_runtime.js', | 467 'dart_runtime.js', |
| 468 'dart/core.js', | 468 'dart/core.js', |
| 469 'dart/math.js' | 469 'dart/math.js' |
| 470 ]; | 470 ]; |
| 471 | 471 |
| 472 /// Runtime files added to applications when running in server mode. | 472 /// Runtime files added to applications when running in server mode. |
| 473 final runtimeFilesForServerMode = new List<String>.from(defaultRuntimeFiles) | 473 final runtimeFilesForServerMode = new List<String>.from(defaultRuntimeFiles) |
| 474 ..addAll(const ['messages_widget.js', 'messages.css']); | 474 ..addAll(const ['messages_widget.js', 'messages.css']); |
| 475 | 475 |
| 476 final _log = new Logger('dev_compiler.dependency_graph'); | 476 final _log = new Logger('dev_compiler.dependency_graph'); |
| OLD | NEW |