OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:convert'; | 6 import 'dart:convert'; |
7 import 'dart:typed_data'; | 7 import 'dart:typed_data'; |
8 | 8 |
9 import 'package:convert/convert.dart'; | 9 import 'package:convert/convert.dart'; |
10 import 'package:crypto/crypto.dart'; | 10 import 'package:crypto/crypto.dart'; |
11 import 'package:front_end/file_system.dart'; | 11 import 'package:front_end/file_system.dart'; |
12 import 'package:front_end/src/base/resolve_relative_uri.dart'; | 12 import 'package:front_end/src/base/resolve_relative_uri.dart'; |
13 import 'package:front_end/src/dependency_walker.dart' as graph; | 13 import 'package:front_end/src/dependency_walker.dart' as graph; |
14 import 'package:front_end/src/fasta/uri_translator.dart'; | 14 import 'package:front_end/src/fasta/uri_translator.dart'; |
15 import 'package:front_end/src/incremental/byte_store.dart'; | 15 import 'package:front_end/src/byte_store/byte_store.dart'; |
16 import 'package:front_end/src/incremental/format.dart'; | 16 import 'package:front_end/src/incremental/format.dart'; |
17 import 'package:front_end/src/incremental/unlinked_unit.dart'; | 17 import 'package:front_end/src/incremental/unlinked_unit.dart'; |
18 import 'package:kernel/target/vm.dart'; | 18 import 'package:kernel/target/vm.dart'; |
19 | 19 |
20 /// This function is called for each newly discovered file, and the returned | 20 /// This function is called for each newly discovered file, and the returned |
21 /// [Future] is awaited before reading the file content. | 21 /// [Future] is awaited before reading the file content. |
22 typedef Future<Null> NewFileFn(Uri uri); | 22 typedef Future<Null> NewFileFn(Uri uri); |
23 | 23 |
24 /// Information about a file being compiled, explicitly or implicitly. | 24 /// Information about a file being compiled, explicitly or implicitly. |
25 /// | 25 /// |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 cycle.libraries.add(node.file); | 511 cycle.libraries.add(node.file); |
512 fileToCycleMap[node.file] = cycle; | 512 fileToCycleMap[node.file] = cycle; |
513 } | 513 } |
514 topologicallySortedCycles.add(cycle); | 514 topologicallySortedCycles.add(cycle); |
515 } | 515 } |
516 | 516 |
517 _LibraryNode getNode(FileState file) { | 517 _LibraryNode getNode(FileState file) { |
518 return nodesOfFiles.putIfAbsent(file, () => new _LibraryNode(this, file)); | 518 return nodesOfFiles.putIfAbsent(file, () => new _LibraryNode(this, file)); |
519 } | 519 } |
520 } | 520 } |
OLD | NEW |