| 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'; | 14 import '../annotated_code_helper.dart'; |
| 19 import '../memory_compiler.dart'; | 15 import '../memory_compiler.dart'; |
| 20 import '../source_map_validator_helper.dart'; | |
| 21 | 16 |
| 22 const List<String> TESTS = const <String>[ | 17 const List<String> TESTS = const <String>[ |
| 23 ''' | 18 ''' |
| 24 @{main}main() { | 19 @{main}main() { |
| 25 @{main}} | 20 @{main}} |
| 26 ''', | 21 ''', |
| 27 ''' | 22 ''' |
| 28 @{main}main() { | 23 @{main}main() { |
| 29 @{+main}throw ''; | 24 @{+main}throw ''; |
| 30 @{main}} | 25 @{main}} |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 bool operator ==(other) { | 203 bool operator ==(other) { |
| 209 if (identical(this, other)) return true; | 204 if (identical(this, other)) return true; |
| 210 if (other is! SourceLocation) return false; | 205 if (other is! SourceLocation) return false; |
| 211 return methodName == other.methodName && | 206 return methodName == other.methodName && |
| 212 lineNo == other.lineNo && | 207 lineNo == other.lineNo && |
| 213 columnNo == other.columnNo; | 208 columnNo == other.columnNo; |
| 214 } | 209 } |
| 215 | 210 |
| 216 String toString() => '$methodName:$lineNo:$columnNo'; | 211 String toString() => '$methodName:$lineNo:$columnNo'; |
| 217 } | 212 } |
| OLD | NEW |