OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 library fasta.source_loader; | 5 library fasta.source_loader; |
6 | 6 |
7 import 'dart:async' show Future; | 7 import 'dart:async' show Future; |
8 | 8 |
9 import 'dart:io' show FileSystemException; | 9 import 'dart:io' show FileSystemException; |
10 | 10 |
11 import 'package:front_end/src/fasta/scanner/io.dart' show readBytesFromFile; | 11 import '../scanner/io.dart' show readBytesFromFile; |
12 | 12 |
13 import 'package:front_end/src/fasta/scanner.dart' | 13 import '../scanner.dart' show ErrorToken, ScannerResult, Token, scan; |
14 show ErrorToken, ScannerResult, Token, scan; | |
15 | 14 |
16 import 'package:front_end/src/fasta/parser/class_member_parser.dart' | 15 import '../parser/class_member_parser.dart' show ClassMemberParser; |
17 show ClassMemberParser; | |
18 | 16 |
19 import 'package:kernel/ast.dart' show Program; | 17 import 'package:kernel/ast.dart' show Program; |
20 | 18 |
21 import 'package:kernel/class_hierarchy.dart' show ClassHierarchy; | 19 import 'package:kernel/class_hierarchy.dart' show ClassHierarchy; |
22 | 20 |
23 import 'package:kernel/core_types.dart' show CoreTypes; | 21 import 'package:kernel/core_types.dart' show CoreTypes; |
24 | 22 |
25 import '../errors.dart' show inputError, printUnexpected; | 23 import '../errors.dart' show inputError, printUnexpected; |
26 | 24 |
27 import '../messages.dart' show warning; | 25 import '../messages.dart' show warning; |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 ticker.logMs("Built analyzer element model."); | 344 ticker.logMs("Built analyzer element model."); |
347 } | 345 } |
348 | 346 |
349 void computeHierarchy(Program program) { | 347 void computeHierarchy(Program program) { |
350 hierarchy = new ClassHierarchy(program); | 348 hierarchy = new ClassHierarchy(program); |
351 ticker.logMs("Computed class hierarchy"); | 349 ticker.logMs("Computed class hierarchy"); |
352 coreTypes = new CoreTypes(program); | 350 coreTypes = new CoreTypes(program); |
353 ticker.logMs("Computed core types"); | 351 ticker.logMs("Computed core types"); |
354 } | 352 } |
355 } | 353 } |
OLD | NEW |