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

Side by Side Diff: pkg/fletchc/lib/src/verbs/compile_verb.dart

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 10 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/fletchc/lib/src/verbs/attach_verb.dart ('k') | pkg/fletchc/lib/src/verbs/create_verb.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) 2015, the Dartino 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.md file.
4
5 library fletchc.verbs.compile_verb;
6
7 import 'infrastructure.dart';
8
9 import '../worker/developer.dart' as developer;
10
11 import 'documentation.dart' show
12 compileDocumentation;
13
14 const Action compileAction = const Action(
15 compile, compileDocumentation, requiresSession: true,
16 requiredTarget: TargetKind.FILE);
17
18 Future<int> compile(AnalyzedSentence sentence, VerbContext context) {
19 bool analyzeOnly = sentence.options.analyzeOnly;
20 bool fatalIncrementalFailures = sentence.options.fatalIncrementalFailures;
21 return context.performTaskInWorker(
22 new CompileTask(sentence.targetUri, sentence.base, analyzeOnly,
23 fatalIncrementalFailures));
24 }
25
26 class CompileTask extends SharedTask {
27 // Keep this class simple, see note in superclass.
28
29 final Uri script;
30
31 final Uri base;
32
33 final bool analyzeOnly;
34
35 final bool fatalIncrementalFailures;
36
37 const CompileTask(
38 this.script, this.base, this.analyzeOnly, this.fatalIncrementalFailures);
39
40 Future<int> call(
41 CommandSender commandSender,
42 StreamIterator<ClientCommand> commandIterator) {
43 return compileTask(script, base, analyzeOnly, fatalIncrementalFailures);
44 }
45 }
46
47 Future<int> compileTask(
48 Uri script, Uri base, bool analyzeOnly, bool fatalIncrementalFailures) {
49 return developer.compile(
50 script, SessionState.current, base, analyzeOnly: analyzeOnly,
51 fatalIncrementalFailures: fatalIncrementalFailures);
52 }
OLDNEW
« no previous file with comments | « pkg/fletchc/lib/src/verbs/attach_verb.dart ('k') | pkg/fletchc/lib/src/verbs/create_verb.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698