| 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 service_one; | 7 library service_one; |
| 8 | 8 |
| 9 import "dart:fletch"; | 9 import "dart:fletch"; |
| 10 import "dart:fletch.ffi"; | 10 import "dart:fletch.ffi"; |
| 11 import "dart:service" as service; | 11 import "dart:fletch.service" as service; |
| 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 ForeignFunction _postResult = ForeignLibrary.main.lookup("PostResultToServ
ice"); | 15 final ForeignFunction _postResult = ForeignLibrary.main.lookup("PostResultToServ
ice"); |
| 16 | 16 |
| 17 bool _terminated = false; | 17 bool _terminated = false; |
| 18 ServiceOne _impl; | 18 ServiceOne _impl; |
| 19 | 19 |
| 20 abstract class ServiceOne { | 20 abstract class ServiceOne { |
| 21 int echo(int arg); | 21 int echo(int arg); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 46 _postResult.vcall$1(request); | 46 _postResult.vcall$1(request); |
| 47 break; | 47 break; |
| 48 default: | 48 default: |
| 49 throw new UnsupportedError("Unknown method"); | 49 throw new UnsupportedError("Unknown method"); |
| 50 } | 50 } |
| 51 } | 51 } |
| 52 | 52 |
| 53 static const int _TERMINATE_METHOD_ID = 0; | 53 static const int _TERMINATE_METHOD_ID = 0; |
| 54 static const int _ECHO_METHOD_ID = 1; | 54 static const int _ECHO_METHOD_ID = 1; |
| 55 } | 55 } |
| OLD | NEW |