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

Unified 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, 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/fletchc/lib/src/verbs/compile_verb.dart
diff --git a/pkg/fletchc/lib/src/verbs/compile_verb.dart b/pkg/fletchc/lib/src/verbs/compile_verb.dart
deleted file mode 100644
index 5e17e9d2a8db32dd15e4b924e636ac5267a76950..0000000000000000000000000000000000000000
--- a/pkg/fletchc/lib/src/verbs/compile_verb.dart
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE.md file.
-
-library fletchc.verbs.compile_verb;
-
-import 'infrastructure.dart';
-
-import '../worker/developer.dart' as developer;
-
-import 'documentation.dart' show
- compileDocumentation;
-
-const Action compileAction = const Action(
- compile, compileDocumentation, requiresSession: true,
- requiredTarget: TargetKind.FILE);
-
-Future<int> compile(AnalyzedSentence sentence, VerbContext context) {
- bool analyzeOnly = sentence.options.analyzeOnly;
- bool fatalIncrementalFailures = sentence.options.fatalIncrementalFailures;
- return context.performTaskInWorker(
- new CompileTask(sentence.targetUri, sentence.base, analyzeOnly,
- fatalIncrementalFailures));
-}
-
-class CompileTask extends SharedTask {
- // Keep this class simple, see note in superclass.
-
- final Uri script;
-
- final Uri base;
-
- final bool analyzeOnly;
-
- final bool fatalIncrementalFailures;
-
- const CompileTask(
- this.script, this.base, this.analyzeOnly, this.fatalIncrementalFailures);
-
- Future<int> call(
- CommandSender commandSender,
- StreamIterator<ClientCommand> commandIterator) {
- return compileTask(script, base, analyzeOnly, fatalIncrementalFailures);
- }
-}
-
-Future<int> compileTask(
- Uri script, Uri base, bool analyzeOnly, bool fatalIncrementalFailures) {
- return developer.compile(
- script, SessionState.current, base, analyzeOnly: analyzeOnly,
- fatalIncrementalFailures: fatalIncrementalFailures);
-}
« 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