Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: pkg/kernel/test/interpreter/suite.dart

Issue 2893563003: Rename buildOutline() and separate 'build' and 'writeProgram()'. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/kernel/test/closures/suite.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 library test.kernel.closures.suite; 5 library test.kernel.closures.suite;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import 'dart:io' show File; 9 import 'dart:io' show File;
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 Ticker ticker = new Ticker(); 77 Ticker ticker = new Ticker();
78 DillTarget dillTarget = new DillTarget(ticker, context.uriTranslator); 78 DillTarget dillTarget = new DillTarget(ticker, context.uriTranslator);
79 platform.unbindCanonicalNames(); 79 platform.unbindCanonicalNames();
80 dillTarget.loader.appendLibraries(platform); 80 dillTarget.loader.appendLibraries(platform);
81 KernelTarget sourceTarget = new KernelTarget(PhysicalFileSystem.instance, 81 KernelTarget sourceTarget = new KernelTarget(PhysicalFileSystem.instance,
82 dillTarget, context.uriTranslator, context.strongMode); 82 dillTarget, context.uriTranslator, context.strongMode);
83 83
84 Program p; 84 Program p;
85 try { 85 try {
86 sourceTarget.read(description.uri); 86 sourceTarget.read(description.uri);
87 await dillTarget.computeOutline(); 87 await dillTarget.buildOutlines();
88 await sourceTarget.computeOutline(); 88 await sourceTarget.buildOutlines();
89 p = await sourceTarget.writeProgram(null); 89 p = await sourceTarget.buildProgram();
90 } on InputError catch (e, s) { 90 } on InputError catch (e, s) {
91 return fail(null, e.error, s); 91 return fail(null, e.error, s);
92 } 92 }
93 return pass(p); 93 return pass(p);
94 } 94 }
95 } 95 }
96 96
97 class Interpret extends Step<Program, EvaluationLog, InterpreterContext> { 97 class Interpret extends Step<Program, EvaluationLog, InterpreterContext> {
98 const Interpret(); 98 const Interpret();
99 99
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 final Uri uri; 148 final Uri uri;
149 149
150 /// Evaluated program log. 150 /// Evaluated program log.
151 final String log; 151 final String log;
152 152
153 EvaluationLog(this.uri, this.log); 153 EvaluationLog(this.uri, this.log);
154 } 154 }
155 155
156 main(List<String> arguments) => 156 main(List<String> arguments) =>
157 runMe(arguments, InterpreterContext.create, "testing.json"); 157 runMe(arguments, InterpreterContext.create, "testing.json");
OLDNEW
« no previous file with comments | « pkg/kernel/test/closures/suite.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698