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 | 6 |
7 import 'package:front_end/compilation_message.dart'; | 7 import 'package:front_end/compilation_message.dart'; |
8 import 'package:front_end/compiler_options.dart'; | 8 import 'package:front_end/compiler_options.dart'; |
9 import 'package:front_end/file_system.dart'; | 9 import 'package:front_end/file_system.dart'; |
10 import 'package:front_end/src/base/performace_logger.dart'; | 10 import 'package:front_end/src/base/performace_logger.dart'; |
11 import 'package:front_end/src/fasta/fasta_codes.dart'; | 11 import 'package:front_end/src/fasta/fasta_codes.dart'; |
12 import 'package:front_end/src/fasta/problems.dart' show unimplemented; | 12 import 'package:front_end/src/fasta/problems.dart' show unimplemented; |
13 import 'package:front_end/src/fasta/severity.dart'; | 13 import 'package:front_end/src/fasta/severity.dart'; |
14 import 'package:front_end/src/fasta/ticker.dart'; | 14 import 'package:front_end/src/fasta/ticker.dart'; |
15 import 'package:front_end/src/fasta/uri_translator.dart'; | 15 import 'package:front_end/src/fasta/uri_translator.dart'; |
16 import 'package:front_end/src/fasta/uri_translator_impl.dart'; | 16 import 'package:front_end/src/fasta/uri_translator_impl.dart'; |
17 import 'package:front_end/src/incremental/byte_store.dart'; | 17 import 'package:front_end/src/byte_store/byte_store.dart'; |
18 import 'package:front_end/src/multi_root_file_system.dart'; | 18 import 'package:front_end/src/multi_root_file_system.dart'; |
19 import 'package:kernel/kernel.dart' | 19 import 'package:kernel/kernel.dart' |
20 show Program, loadProgramFromBytes, CanonicalName; | 20 show Program, loadProgramFromBytes, CanonicalName; |
21 import 'package:kernel/target/targets.dart'; | 21 import 'package:kernel/target/targets.dart'; |
22 import 'package:kernel/target/vm_fasta.dart'; | 22 import 'package:kernel/target/vm_fasta.dart'; |
23 import 'package:package_config/packages.dart' show Packages; | 23 import 'package:package_config/packages.dart' show Packages; |
24 import 'package:package_config/src/packages_impl.dart' | 24 import 'package:package_config/src/packages_impl.dart' |
25 show NonFilePackagesDirectoryPackages, MapPackages; | 25 show NonFilePackagesDirectoryPackages, MapPackages; |
26 import 'package:package_config/packages_file.dart' as package_config; | 26 import 'package:package_config/packages_file.dart' as package_config; |
27 import 'package:source_span/source_span.dart' show SourceSpan, SourceLocation; | 27 import 'package:source_span/source_span.dart' show SourceSpan, SourceLocation; |
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 String get dart2jsCode => _original.code.dart2jsCode; | 602 String get dart2jsCode => _original.code.dart2jsCode; |
603 | 603 |
604 SourceSpan get span => | 604 SourceSpan get span => |
605 new SourceLocation(_original.charOffset, sourceUrl: _original.uri) | 605 new SourceLocation(_original.charOffset, sourceUrl: _original.uri) |
606 .pointSpan(); | 606 .pointSpan(); |
607 | 607 |
608 _CompilationMessage(this._original, this.severity); | 608 _CompilationMessage(this._original, this.severity); |
609 | 609 |
610 String toString() => message; | 610 String toString() => message; |
611 } | 611 } |
OLD | NEW |