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

Side by Side Diff: pkg/fasta/lib/src/target.dart

Issue 2634453004: Fasta infrastructure. (Closed)
Patch Set: Address review comments. Created 3 years, 11 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/fasta/lib/src/run.dart ('k') | pkg/fasta/lib/src/target_implementation.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
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.
4
5 library fasta.target;
6
7 import 'dart:async' show
8 Future;
9
10 import 'ticker.dart' show
11 Ticker;
12
13 import 'ast_kind.dart' show
14 AstKind;
15
16 /// A compilation target.
17 ///
18 /// A target reads source files with [read] and writes out the resulting
19 /// program when [writeOutline] is called.
20 abstract class Target {
21 final Ticker ticker;
22
23 Target(this.ticker);
24
25 /// Instructs this target to include [uri] in its result.
26 void read(Uri uri);
27
28 /// Write the resulting program in the file [uri].
29 Future writeProgram(Uri uri, AstKind astKind);
30
31 /// Write the resulting outline in the file [uri].
32 Future writeOutline(Uri uri);
33 }
OLDNEW
« no previous file with comments | « pkg/fasta/lib/src/run.dart ('k') | pkg/fasta/lib/src/target_implementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698