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

Unified Diff: tools/servicec_blaze.dart

Issue 2035023003: Remove service-compiler related code. (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Created 4 years, 6 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 | « tools/servicec/pubspec.yaml ('k') | tools/testing/dart/dartino_test_suite.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/servicec_blaze.dart
diff --git a/tools/servicec_blaze.dart b/tools/servicec_blaze.dart
deleted file mode 100644
index 6f77a6ca2caeb2642f3d98c6082440a419d8d561..0000000000000000000000000000000000000000
--- a/tools/servicec_blaze.dart
+++ /dev/null
@@ -1,69 +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 servicec_blaze;
-
-import 'dart:async';
-
-import 'dart:io';
-
-import 'package:servicec/compiler.dart' show
- compile;
-
-import 'package:servicec/errors.dart' show
- CompilationError,
- ErrorReporter;
-
-class ServicecRunner {
-
- Future<int> run(List<String> arguments) async {
- String idl = null;
- String out = null;
- String resources = null;
-
- for (int i = 0; i < arguments.length; ++i) {
- String arg = arguments[i];
- if (arg == "--out") {
- if (out != null) throw "Cannot supply multiple output directories";
- out = arguments[++i];
- } else if (arg == "--resources") {
- if (resources != null) {
- throw "Cannot supply multiple resource directories";
- }
- resources = arguments[++i];
- } else if (arg.startsWith("-")) {
- throw "Unknown option $arg";
- } else {
- if (idl != null) throw "Cannot compile multiple IDL files";
- idl = arg;
- }
- }
-
- if (idl == null) {
- throw "Supply an IDL file to compile";
- }
- if (out == null) {
- throw "Supply an output directory with "
- + "--out <path to output directory>";
- }
- if (resources == null) {
- throw "Supply the servicec resources root with "
- + "--resources <path to resources root>";
- }
-
- Iterable<CompilationError> errors = await compile(idl, resources, out);
-
- if (errors.isNotEmpty) {
- print("Encountered errors while compiling definitions in $idl.");
- new ErrorReporter(idl, idl).report(errors);
- return 1;
- }
-
- return 0;
- }
-}
-
-main(List<String> arguments) async {
- return await new ServicecRunner().run(arguments);
-}
« no previous file with comments | « tools/servicec/pubspec.yaml ('k') | tools/testing/dart/dartino_test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698