| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 /// New Compiler API. This API is under construction, use only internally or | 5 /// New Compiler API. This API is under construction, use only internally or |
| 6 /// in unittests. | 6 /// in unittests. |
| 7 | 7 |
| 8 library compiler_new; | 8 library compiler_new; |
| 9 | 9 |
| 10 import 'dart:async'; | 10 import 'dart:async'; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 if (compilerOutput == null) { | 118 if (compilerOutput == null) { |
| 119 throw new ArgumentError("compilerOutput must be non-null"); | 119 throw new ArgumentError("compilerOutput must be non-null"); |
| 120 } | 120 } |
| 121 | 121 |
| 122 CompilerImpl compiler = new CompilerImpl( | 122 CompilerImpl compiler = new CompilerImpl( |
| 123 compilerInput, compilerOutput, compilerDiagnostics, compilerOptions); | 123 compilerInput, compilerOutput, compilerDiagnostics, compilerOptions); |
| 124 return compiler.run(compilerOptions.entryPoint).then((bool success) { | 124 return compiler.run(compilerOptions.entryPoint).then((bool success) { |
| 125 return new CompilationResult(compiler, isSuccess: success); | 125 return new CompilationResult(compiler, isSuccess: success); |
| 126 }); | 126 }); |
| 127 } | 127 } |
| 128 | |
| OLD | NEW |