| OLD | NEW |
| 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 library dartino_compiler.dartino_compiler_implementation; | 5 library dartino_compiler.dartino_compiler_implementation; |
| 6 | 6 |
| 7 import 'dart:async' show | 7 import 'dart:async' show |
| 8 EventSink, | 8 EventSink, |
| 9 Future; | 9 Future; |
| 10 | 10 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 class DartinoCompilerImplementation extends CompilerImpl { | 90 class DartinoCompilerImplementation extends CompilerImpl { |
| 91 final Uri dartinoVm; | 91 final Uri dartinoVm; |
| 92 | 92 |
| 93 final Uri nativesJson; | 93 final Uri nativesJson; |
| 94 | 94 |
| 95 final IncrementalCompiler incrementalCompiler; | 95 final IncrementalCompiler incrementalCompiler; |
| 96 | 96 |
| 97 Map<Uri, CompilationUnitElementX> compilationUnits; | 97 Map<Uri, CompilationUnitElementX> compilationUnits; |
| 98 DartinoContext internalContext; | 98 DartinoContext internalContext; |
| 99 | 99 |
| 100 DartinoBackend get backend => super.backend; |
| 101 |
| 100 /// A reference to [../compiler.dart:DartinoCompiler] used for testing. | 102 /// A reference to [../compiler.dart:DartinoCompiler] used for testing. |
| 101 // TODO(ahe): Clean this up and remove this. | 103 // TODO(ahe): Clean this up and remove this. |
| 102 var helper; | 104 var helper; |
| 103 | 105 |
| 104 DartinoEnqueueTask get enqueuer => super.enqueuer; | 106 DartinoEnqueueTask get enqueuer => super.enqueuer; |
| 105 | 107 |
| 106 DartinoCompilerImplementation( | 108 DartinoCompilerImplementation( |
| 107 api.CompilerInput provider, | 109 api.CompilerInput provider, |
| 108 api.CompilerOutput outputProvider, | 110 api.CompilerOutput outputProvider, |
| 109 api.CompilerDiagnostics handler, | 111 api.CompilerDiagnostics handler, |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 } | 279 } |
| 278 } | 280 } |
| 279 | 281 |
| 280 SourceFile getSourceFile(api.CompilerInput provider, Uri uri) { | 282 SourceFile getSourceFile(api.CompilerInput provider, Uri uri) { |
| 281 if (provider is SourceFileProvider) { | 283 if (provider is SourceFileProvider) { |
| 282 return provider.getSourceFile(uri); | 284 return provider.getSourceFile(uri); |
| 283 } else { | 285 } else { |
| 284 return null; | 286 return null; |
| 285 } | 287 } |
| 286 } | 288 } |
| OLD | NEW |