| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 compiler; | 5 library compiler; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'package:package_config/packages.dart'; | 8 import 'package:package_config/packages.dart'; |
| 9 import 'compiler_new.dart' as new_api; | 9 import 'compiler_new.dart' as new_api; |
| 10 import 'src/old_to_new_api.dart'; | 10 import 'src/old_to_new_api.dart'; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 Uri libraryRoot, | 108 Uri libraryRoot, |
| 109 Uri packageRoot, | 109 Uri packageRoot, |
| 110 CompilerInputProvider inputProvider, | 110 CompilerInputProvider inputProvider, |
| 111 DiagnosticHandler handler, | 111 DiagnosticHandler handler, |
| 112 [List<String> options = const [], | 112 [List<String> options = const [], |
| 113 CompilerOutputProvider outputProvider, | 113 CompilerOutputProvider outputProvider, |
| 114 Map<String, dynamic> environment = const {}, | 114 Map<String, dynamic> environment = const {}, |
| 115 Uri packageConfig, | 115 Uri packageConfig, |
| 116 PackagesDiscoveryProvider packagesDiscoveryProvider]) { | 116 PackagesDiscoveryProvider packagesDiscoveryProvider]) { |
| 117 | 117 |
| 118 new_api.CompilerOptions compilerOptions = new new_api.CompilerOptions( | 118 new_api.CompilerOptions compilerOptions = new new_api.CompilerOptions.parse( |
| 119 entryPoint: script, | 119 entryPoint: script, |
| 120 libraryRoot: libraryRoot, | 120 libraryRoot: libraryRoot, |
| 121 packageRoot: packageRoot, | 121 packageRoot: packageRoot, |
| 122 packageConfig: packageConfig, | 122 packageConfig: packageConfig, |
| 123 packagesDiscoveryProvider: packagesDiscoveryProvider, | 123 packagesDiscoveryProvider: packagesDiscoveryProvider, |
| 124 options: options, | 124 options: options, |
| 125 environment: environment); | 125 environment: environment); |
| 126 | 126 |
| 127 new_api.CompilerInput compilerInput = new LegacyCompilerInput(inputProvider); | 127 new_api.CompilerInput compilerInput = new LegacyCompilerInput(inputProvider); |
| 128 new_api.CompilerDiagnostics compilerDiagnostics = | 128 new_api.CompilerDiagnostics compilerDiagnostics = |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 final String name; | 202 final String name; |
| 203 | 203 |
| 204 /** | 204 /** |
| 205 * This constructor is not private to support user-defined | 205 * This constructor is not private to support user-defined |
| 206 * diagnostic kinds. | 206 * diagnostic kinds. |
| 207 */ | 207 */ |
| 208 const Diagnostic(this.ordinal, this.name); | 208 const Diagnostic(this.ordinal, this.name); |
| 209 | 209 |
| 210 String toString() => name; | 210 String toString() => name; |
| 211 } | 211 } |
| OLD | NEW |