| OLD | NEW |
| (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 } |
| OLD | NEW |