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

Unified Diff: tools/servicec/lib/compiler.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/bin/servicec.dart ('k') | tools/servicec/lib/src/emitter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/servicec/lib/compiler.dart
diff --git a/tools/servicec/lib/compiler.dart b/tools/servicec/lib/compiler.dart
deleted file mode 100644
index 1398ba75026429a228f5b443c359104a152e0b91..0000000000000000000000000000000000000000
--- a/tools/servicec/lib/compiler.dart
+++ /dev/null
@@ -1,51 +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 file.
-
-library old_servicec.compiler;
-
-import 'dart:io';
-
-import 'src/emitter.dart';
-import 'src/parser.dart';
-import 'src/pretty_printer.dart';
-import 'src/resolver.dart';
-
-import 'src/plugins/cc.dart' as cc;
-import 'src/plugins/dart.dart' as dart;
-import 'src/plugins/java.dart' as java;
-
-import 'package:path/path.dart' show join, dirname;
-
-const List<String> RESOURCES = const [
- "Service.podspec",
-];
-
-void compile(String path,
- Unit unit,
- String resourcesDirectory,
- String outputDirectory) {
- resolve(unit);
- dump(path, unit);
-
- cc.generate(path, unit, resourcesDirectory, outputDirectory);
- dart.generate(path, unit, resourcesDirectory, outputDirectory);
- java.generate(path, unit, resourcesDirectory, outputDirectory);
-
- for (String resource in RESOURCES) {
- String resourcePath = join(resourcesDirectory, resource);
- File file = new File(resourcePath);
- String contents = file.readAsStringSync();
- writeToFile(outputDirectory, resource, contents);
- }
-}
-
-void dump(String path, Unit unit) {
- String banner = "Parsed IDL for $path";
- print(banner);
- print('-' * banner.length);
- var printer = new PrettyPrinter();
- printer.visit(unit);
- String printed = printer.buffer.toString().replaceAll('\n', '\n ');
- print(' $printed');
-}
« no previous file with comments | « tools/servicec/bin/servicec.dart ('k') | tools/servicec/lib/src/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698