| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Fletch 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 // Generated file. Do not edit. | 5 // Generated file. Do not edit. |
| 6 | 6 |
| 7 library performance_service; | 7 library performance_service; |
| 8 | 8 |
| 9 import "dart:ffi"; | 9 import "dart:ffi"; |
| 10 import "dart:service" as service; | 10 import "dart:service" as service; |
| 11 import "package:service/struct.dart"; | 11 import "package:service/struct.dart"; |
| 12 | 12 |
| 13 final Channel _channel = new Channel(); | 13 final Channel _channel = new Channel(); |
| 14 final Port _port = new Port(_channel); | 14 final Port _port = new Port(_channel); |
| 15 final Foreign _postResult = Foreign.lookup("PostResultToService"); | 15 final ForeignFunction _postResult = |
| 16 ForeignLibrary.main.lookup("PostResultToService"); |
| 16 | 17 |
| 17 bool _terminated = false; | 18 bool _terminated = false; |
| 18 PerformanceService _impl; | 19 PerformanceService _impl; |
| 19 | 20 |
| 20 abstract class PerformanceService { | 21 abstract class PerformanceService { |
| 21 int echo(int n); | 22 int echo(int n); |
| 22 int countTreeNodes(TreeNode node); | 23 int countTreeNodes(TreeNode node); |
| 23 void buildTree(int n, TreeNodeBuilder result); | 24 void buildTree(int n, TreeNodeBuilder result); |
| 24 | 25 |
| 25 static void initialize(PerformanceService impl) { | 26 static void initialize(PerformanceService impl) { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 } | 83 } |
| 83 } | 84 } |
| 84 | 85 |
| 85 class _TreeNodeList extends ListReader implements List<TreeNode> { | 86 class _TreeNodeList extends ListReader implements List<TreeNode> { |
| 86 TreeNode operator[](int index) => readListElement(new TreeNode(), index, 8); | 87 TreeNode operator[](int index) => readListElement(new TreeNode(), index, 8); |
| 87 } | 88 } |
| 88 | 89 |
| 89 class _TreeNodeBuilderList extends ListBuilder implements List<TreeNodeBuilder>
{ | 90 class _TreeNodeBuilderList extends ListBuilder implements List<TreeNodeBuilder>
{ |
| 90 TreeNodeBuilder operator[](int index) => readListElement(new TreeNodeBuilder()
, index, 8); | 91 TreeNodeBuilder operator[](int index) => readListElement(new TreeNodeBuilder()
, index, 8); |
| 91 } | 92 } |
| OLD | NEW |