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 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:convert'; | |
7 import 'dart:io'; | 6 import 'dart:io'; |
8 | 7 |
9 import 'package:async_helper/async_helper.dart'; | 8 import 'package:async_helper/async_helper.dart'; |
10 import 'package:compiler/compiler_new.dart'; | 9 import 'package:compiler/compiler_new.dart'; |
11 import 'package:compiler/src/apiimpl.dart'; | |
12 import 'package:compiler/src/commandline_options.dart'; | 10 import 'package:compiler/src/commandline_options.dart'; |
13 import 'package:compiler/src/dart2js.dart' as entry; | |
14 import 'package:expect/expect.dart'; | 11 import 'package:expect/expect.dart'; |
15 import 'package:source_maps/source_maps.dart'; | 12 import 'package:source_maps/source_maps.dart'; |
16 import 'package:source_maps/src/utils.dart'; | |
17 | 13 |
18 import '../annotated_code_helper.dart'; | |
19 import '../memory_compiler.dart'; | 14 import '../memory_compiler.dart'; |
20 import '../source_map_validator_helper.dart'; | |
21 | 15 |
22 const List<String> TESTS = const <String>[ | 16 const List<String> TESTS = const <String>[ |
23 ''' | 17 ''' |
24 main() {} | 18 main() {} |
25 ''', | 19 ''', |
26 ]; | 20 ]; |
27 | 21 |
28 void main(List<String> arguments) { | 22 void main(List<String> arguments) { |
29 bool verbose = false; | 23 bool verbose = false; |
30 bool writeJs = false; | 24 bool writeJs = false; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 } | 115 } |
122 if (entry.sourceLine != null) { | 116 if (entry.sourceLine != null) { |
123 sb.write('sourceLine='); | 117 sb.write('sourceLine='); |
124 sb.write(entry.sourceLine); | 118 sb.write(entry.sourceLine); |
125 sb.write(',sourceColumn='); | 119 sb.write(',sourceColumn='); |
126 sb.write(entry.sourceColumn); | 120 sb.write(entry.sourceColumn); |
127 } | 121 } |
128 sb.write(']'); | 122 sb.write(']'); |
129 return sb.toString(); | 123 return sb.toString(); |
130 } | 124 } |
OLD | NEW |