| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 /// A library for compiling Dart code and manipulating analyzer parse trees. | 5 /// A library for compiling Dart code and manipulating analyzer parse trees. |
| 6 library pub.dart; | 6 library pub.dart; |
| 7 | 7 |
| 8 import 'dart:async' hide TimeoutException; | 8 import 'dart:async'; |
| 9 import 'dart:isolate'; | 9 import 'dart:isolate'; |
| 10 | 10 |
| 11 import 'package:analyzer/analyzer.dart'; | 11 import 'package:analyzer/analyzer.dart'; |
| 12 import 'package:path/path.dart' as path; | 12 import 'package:path/path.dart' as path; |
| 13 import 'package:stack_trace/stack_trace.dart'; | 13 import 'package:stack_trace/stack_trace.dart'; |
| 14 import '../../../compiler/compiler.dart' as compiler; | 14 import '../../../compiler/compiler.dart' as compiler; |
| 15 import '../../../compiler/implementation/source_file_provider.dart' | 15 import '../../../compiler/implementation/source_file_provider.dart' |
| 16 show FormattingDiagnosticHandler, CompilerSourceFileProvider; | 16 show FormattingDiagnosticHandler, CompilerSourceFileProvider; |
| 17 import '../../../compiler/implementation/filenames.dart' | 17 import '../../../compiler/implementation/filenames.dart' |
| 18 show appendSlash; | 18 show appendSlash; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 } | 181 } |
| 182 | 182 |
| 183 String toString() => "$message\n$stackTrace"; | 183 String toString() => "$message\n$stackTrace"; |
| 184 } | 184 } |
| 185 | 185 |
| 186 /// An exception thrown when dart2js generates compiler errors. | 186 /// An exception thrown when dart2js generates compiler errors. |
| 187 class CompilerException extends ApplicationException { | 187 class CompilerException extends ApplicationException { |
| 188 CompilerException(String entrypoint) | 188 CompilerException(String entrypoint) |
| 189 : super('Failed to compile "$entrypoint".'); | 189 : super('Failed to compile "$entrypoint".'); |
| 190 } | 190 } |
| OLD | NEW |