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

Unified Diff: tools/servicec/lib/src/plugins/shared.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/lib/src/plugins/java.dart ('k') | tools/servicec/lib/src/pretty_printer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/servicec/lib/src/plugins/shared.dart
diff --git a/tools/servicec/lib/src/plugins/shared.dart b/tools/servicec/lib/src/plugins/shared.dart
deleted file mode 100644
index 8fcc592a856331342a74207e940895919cc2b511..0000000000000000000000000000000000000000
--- a/tools/servicec/lib/src/plugins/shared.dart
+++ /dev/null
@@ -1,42 +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.plugins.shared;
-
-import 'package:servicec/util.dart' as strings;
-
-import '../parser.dart';
-export '../parser.dart';
-
-abstract class CodeGenerationVisitor extends Visitor {
- final String path;
- final StringBuffer buffer = new StringBuffer();
- CodeGenerationVisitor(this.path);
-
- void write(String s) => buffer.write(s);
- void writeln([String s = '']) => buffer.writeln(s);
-
- String camelize(String name) {
- return strings.camelize(strings.underscore(name));
- }
-
- visit(Node node) => node.accept(this);
-
- visitStruct(Struct node) {
- // TODO(kasper): Stop ignoring this.
- }
-
- visitUnion(Union node) {
- // TODO(kasper): Stop ignoring this.
- }
-
- visitNodes(List<Node> nodes, String separatedBy(bool first)) {
- bool first = true;
- for (int i = 0; i < nodes.length; i++) {
- write(separatedBy(first));
- if (first) first = false;
- visit(nodes[i]);
- }
- }
-}
« no previous file with comments | « tools/servicec/lib/src/plugins/java.dart ('k') | tools/servicec/lib/src/pretty_printer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698