Index: pkg/front_end/lib/src/fasta/kernel/kernel_target.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart |
index 5f2e87e875dba6597fcadb21bcf3e542f646cc64..b503d0fb4b2fa83c34fd8ad36dde1ee774086223 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart |
@@ -216,6 +216,30 @@ class KernelTarget extends TargetImplementation { |
: writeLinkedProgram(uri, program, isFullProgram: isFullProgram); |
} |
+ Future<Program> writeOutline(Uri uri) async { |
+ if (loader.first == null) return null; |
+ try { |
+ await loader.buildOutlines(); |
+ loader.resolveParts(); |
+ loader.computeLibraryScopes(); |
+ loader.resolveTypes(); |
+ loader.buildProgram(); |
+ loader.checkSemantics(); |
+ List<SourceClassBuilder> sourceClasses = collectAllSourceClasses(); |
+ installDefaultSupertypes(); |
+ installDefaultConstructors(sourceClasses); |
+ loader.resolveConstructors(); |
+ loader.finishTypeVariables(objectClassBuilder); |
+ program = link(new List<Library>.from(loader.libraries)); |
+ if (uri == null) return program; |
+ return await writeLinkedProgram(uri, program, isFullProgram: false); |
+ } on InputError catch (e) { |
+ return handleInputError(uri, e, isFullProgram: false); |
+ } catch (e, s) { |
+ return reportCrash(e, s, loader?.currentUriForCrashReporting); |
+ } |
+ } |
+ |
Future<Program> writeProgram(Uri uri, |
{bool dumpIr: false, bool verify: false}) async { |
if (loader.first == null) return null; |
@@ -247,30 +271,6 @@ class KernelTarget extends TargetImplementation { |
} |
} |
- Future<Program> writeOutline(Uri uri) async { |
- if (loader.first == null) return null; |
- try { |
- await loader.buildOutlines(); |
- loader.resolveParts(); |
- loader.computeLibraryScopes(); |
- loader.resolveTypes(); |
- loader.buildProgram(); |
- loader.checkSemantics(); |
- List<SourceClassBuilder> sourceClasses = collectAllSourceClasses(); |
- installDefaultSupertypes(); |
- installDefaultConstructors(sourceClasses); |
- loader.resolveConstructors(); |
- loader.finishTypeVariables(objectClassBuilder); |
- program = link(new List<Library>.from(loader.libraries)); |
- if (uri == null) return program; |
- return await writeLinkedProgram(uri, program, isFullProgram: false); |
- } on InputError catch (e) { |
- return handleInputError(uri, e, isFullProgram: false); |
- } catch (e, s) { |
- return reportCrash(e, s, loader?.currentUriForCrashReporting); |
- } |
- } |
- |
Future writeDepsFile(Uri output, Uri depsFile) async { |
if (loader.first == null) return null; |
StringBuffer sb = new StringBuffer(); |