| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library servicec.plugins.cc; | 5 library servicec.plugins.cc; |
| 6 | 6 |
| 7 import 'dart:core' hide Type; | 7 import 'dart:core' hide Type; |
| 8 import 'dart:io' show Platform, File; | 8 import 'dart:io' show Platform, File; |
| 9 | 9 |
| 10 import 'package:strings/strings.dart' as strings; | 10 import 'package:strings/strings.dart' as strings; |
| 11 import 'package:path/path.dart' show basenameWithoutExtension, join, dirname; | 11 import 'package:path/path.dart' show basenameWithoutExtension, join, dirname; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 _JavaActionWriter.fromTypes(types.toList()).writeTo(outputDirectory); | 81 _JavaActionWriter.fromTypes(types.toList()).writeTo(outputDirectory); |
| 82 } | 82 } |
| 83 } | 83 } |
| 84 | 84 |
| 85 class _ActionsCollector extends CodeGenerationVisitor { | 85 class _ActionsCollector extends CodeGenerationVisitor { |
| 86 _ActionsCollector() : super(null); | 86 _ActionsCollector() : super(null); |
| 87 } | 87 } |
| 88 | 88 |
| 89 class _JavaVisitor extends CodeGenerationVisitor { | 89 class _JavaVisitor extends CodeGenerationVisitor { |
| 90 static const COPYRIGHT = """ | 90 static const COPYRIGHT = """ |
| 91 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 91 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 92 // for details. All rights reserved. Use of this source code is governed by a | 92 // for details. All rights reserved. Use of this source code is governed by a |
| 93 // BSD-style license that can be found in the LICENSE.md file. | 93 // BSD-style license that can be found in the LICENSE.md file. |
| 94 """; | 94 """; |
| 95 | 95 |
| 96 _JavaVisitor(String path) : super(path); | 96 _JavaVisitor(String path) : super(path); |
| 97 } | 97 } |
| 98 | 98 |
| 99 class _JavaWriter extends _JavaVisitor { | 99 class _JavaWriter extends _JavaVisitor { |
| 100 | 100 |
| 101 final String className; | 101 final String className; |
| (...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 writeln(' if (data.is$name()) {'); | 751 writeln(' if (data.is$name()) {'); |
| 752 writeln(' $nodeName typedPrevious = null;'); | 752 writeln(' $nodeName typedPrevious = null;'); |
| 753 writeln(' if (previous instanceof $nodeName) {'); | 753 writeln(' if (previous instanceof $nodeName) {'); |
| 754 writeln(' typedPrevious = ($nodeName)previous;'); | 754 writeln(' typedPrevious = ($nodeName)previous;'); |
| 755 writeln(' }'); | 755 writeln(' }'); |
| 756 writeln(' return new $patchName('); | 756 writeln(' return new $patchName('); |
| 757 writeln(' data.get$name(), typedPrevious, root);'); | 757 writeln(' data.get$name(), typedPrevious, root);'); |
| 758 writeln(' }'); | 758 writeln(' }'); |
| 759 } | 759 } |
| 760 } | 760 } |
| OLD | NEW |