| 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 conformance_service; | 7 library conformance_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 ConformanceService _impl; | 19 ConformanceService _impl; |
| 19 | 20 |
| 20 abstract class ConformanceService { | 21 abstract class ConformanceService { |
| 21 int getAge(Person person); | 22 int getAge(Person person); |
| 22 int getBoxedAge(PersonBox box); | 23 int getBoxedAge(PersonBox box); |
| 23 void getAgeStats(Person person, AgeStatsBuilder result); | 24 void getAgeStats(Person person, AgeStatsBuilder result); |
| 24 void createAgeStats(int averageAge, int sum, AgeStatsBuilder result); | 25 void createAgeStats(int averageAge, int sum, AgeStatsBuilder result); |
| 25 void createPerson(int children, PersonBuilder result); | 26 void createPerson(int children, PersonBuilder result); |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 void operator[]=(int index, int value) { segment.memory.setUint16(offset + ind
ex * 2, value); } | 302 void operator[]=(int index, int value) { segment.memory.setUint16(offset + ind
ex * 2, value); } |
| 302 } | 303 } |
| 303 | 304 |
| 304 class _PersonList extends ListReader implements List<Person> { | 305 class _PersonList extends ListReader implements List<Person> { |
| 305 Person operator[](int index) => readListElement(new Person(), index, 24); | 306 Person operator[](int index) => readListElement(new Person(), index, 24); |
| 306 } | 307 } |
| 307 | 308 |
| 308 class _PersonBuilderList extends ListBuilder implements List<PersonBuilder> { | 309 class _PersonBuilderList extends ListBuilder implements List<PersonBuilder> { |
| 309 PersonBuilder operator[](int index) => readListElement(new PersonBuilder(), in
dex, 24); | 310 PersonBuilder operator[](int index) => readListElement(new PersonBuilder(), in
dex, 24); |
| 310 } | 311 } |
| OLD | NEW |