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

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

Issue 2634453004: Fasta infrastructure. (Closed)
Patch Set: 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
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

Powered by Google App Engine
This is Rietveld 408576698