| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE.md file. | |
| 4 | |
| 5 service ConformanceService { | |
| 6 int32 getAge(Person* person); | |
| 7 int32 getBoxedAge(PersonBox* box); | |
| 8 AgeStats* getAgeStats(Person* person); | |
| 9 AgeStats* createAgeStats(int32 averageAge, int32 sum); | |
| 10 Person* createPerson(int32 children); | |
| 11 Node* createNode(int32 depth); | |
| 12 int32 count(Person* person); | |
| 13 | |
| 14 int32 depth(Node* node); | |
| 15 void foo(); | |
| 16 int32 bar(Empty* empty); | |
| 17 | |
| 18 int32 ping(); | |
| 19 | |
| 20 TableFlip* flipTable(TableFlip* flip); | |
| 21 InternalFields* internalize(InternalFields* internalFields); | |
| 22 } | |
| 23 | |
| 24 struct Empty { } | |
| 25 | |
| 26 struct AgeStats { | |
| 27 int32 averageAge; | |
| 28 int32 sum; | |
| 29 } | |
| 30 | |
| 31 struct Person { | |
| 32 String name; | |
| 33 int32 age; | |
| 34 List<Person> children; | |
| 35 } | |
| 36 | |
| 37 struct Large { | |
| 38 int32 y; | |
| 39 Small s; | |
| 40 } | |
| 41 | |
| 42 struct Small { | |
| 43 int32 x; | |
| 44 } | |
| 45 | |
| 46 struct PersonBox { | |
| 47 Person* person; | |
| 48 } | |
| 49 | |
| 50 struct Node { | |
| 51 union { | |
| 52 int32 num; | |
| 53 bool cond; | |
| 54 Cons cons; | |
| 55 void nil; | |
| 56 } | |
| 57 } | |
| 58 | |
| 59 struct Cons { | |
| 60 Node* fst; | |
| 61 Node* snd; | |
| 62 } | |
| 63 | |
| 64 struct TableFlip { | |
| 65 String flip; | |
| 66 } | |
| 67 | |
| 68 struct InternalFields { | |
| 69 int32 offset; | |
| 70 String segment; | |
| 71 } | |
| OLD | NEW |