Debian Codegraph @

crates/wit-component/tests/components/lower-options/module.wit

raw
1 package foo:foo;
2
3 interface foo {
4 record r {
5 s: string
6 }
7
8 record r-no-string {
9 s: u32
10 }
11
12 variant v {
13 s(string)
14 }
15
16 variant v-no-string {
17 s(u32)
18 }
19
20 a: func();
21 b: func(x: list<string>);
22 c: func(x: r);
23 d: func(x: v);
24 e: func(x: r-no-string);
25 f: func(x: v-no-string);
26 g: func(x: list<r>);
27 h: func(x: list<v>);
28 i: func(x: list<u32>);
29 j: func(x: u32);
30 k: func() -> tuple<u32, u32>;
31 l: func() -> string;
32 m: func() -> list<u32>;
33 n: func() -> u32;
34 o: func() -> v;
35 p: func() -> list<v-no-string>;
36 }
37
38 world module {
39 import foo;
40 }