Debian Codegraph @

crates/wit-component/tests/components/exports/module.wit

raw
1 package foo:foo;
2
3 world module {
4 export a: func();
5 export b: func(a: s8, b: s16, c: s32, d: s64) -> string;
6 export c: func() -> tuple<s8, s16, s32, s64>;
7
8 export bar: interface {
9 flags x {
10 a,
11 b,
12 c
13 }
14
15 a: func(x: x);
16 }
17
18 export foo: interface {
19 variant x {
20 a,
21 b(string),
22 c(s64)
23 }
24
25 a: func();
26 b: func(x: string) -> x;
27 c: func(x: x) -> string;
28 }
29 }