2014-07-14 04:11:48 -07:00
|
|
|
struct Named {
|
2016-06-08 07:49:09 -07:00
|
|
|
field: ref(int);
|
2016-05-31 08:02:26 -07:00
|
|
|
something: string;
|
2014-07-14 04:11:48 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
struct Another {
|
2015-05-12 08:15:29 -07:00
|
|
|
field: Named;
|
2014-07-14 04:11:48 -07:00
|
|
|
}
|
|
|
|
|
2014-08-13 08:43:18 -07:00
|
|
|
/* opaque struct */
|
|
|
|
struct Opaque;
|
|
|
|
|
2015-05-29 03:24:55 -07:00
|
|
|
struct @extern Not.Generated {
|
|
|
|
field: int;
|
|
|
|
}
|
|
|
|
|
2014-07-30 07:35:57 -07:00
|
|
|
class Struct {
|
2014-07-14 04:11:48 -07:00
|
|
|
methods {
|
|
|
|
foo {
|
2015-07-03 08:15:01 -07:00
|
|
|
[[Foo docs. This is $monospace. This is alone-standing $.]]
|
2014-07-14 04:11:48 -07:00
|
|
|
params {
|
2015-05-18 08:13:08 -07:00
|
|
|
idx: int;
|
2014-07-14 04:11:48 -07:00
|
|
|
}
|
2014-08-07 08:58:45 -07:00
|
|
|
return: own(char*);
|
2014-07-14 04:11:48 -07:00
|
|
|
}
|
2015-10-21 10:14:22 -07:00
|
|
|
bar {
|
|
|
|
return: Named *;
|
|
|
|
}
|
2014-07-14 04:11:48 -07:00
|
|
|
}
|
|
|
|
}
|