efl/src/tests/eolian/data/struct.eo

35 lines
669 B
Plaintext

struct Named {
[[Docs for struct Named. @since 1.66]]
field: int @by_ref;
something: string;
}
struct Another {
[[Docs for struct Another. @since 1.66]]
field: Named;
}
/* opaque struct */
struct Opaque; [[Docs for struct Opaque. @since 1.66]]
struct @extern Not.Generated {
[[Docs for struct Not.Generated. @since 1.66]]
field: int;
}
class Struct {
[[Docs for class Struct. @since 1.66]]
methods {
foo {
[[Foo docs. This is $monospace. This is alone-standing $.]]
params {
idx: int;
}
return: mstring @move;
}
bar {
return: Named @by_ref;
}
}
}