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]); |
- } |
- } |
-} |