Files
cli/vendor/wit-component/tests/interfaces/reference-out-of-order.wat

64 lines
2.1 KiB
Plaintext

(component
(type (;0;)
(component
(type (;0;)
(instance
(type (;0;) (record (field "s" string)))
(export (;1;) "r" (type (eq 0)))
(type (;2;) (variant (case "s" string)))
(export (;3;) "v" (type (eq 2)))
(type (;4;) (record (field "s" u32)))
(export (;5;) "r-no-string" (type (eq 4)))
(type (;6;) (variant (case "s" u32)))
(export (;7;) "v-no-string" (type (eq 6)))
(type (;8;) (func (param "x" 1)))
(export (;0;) "a" (func (type 8)))
(type (;9;) (func (param "x" 3)))
(export (;1;) "b" (func (type 9)))
(type (;10;) (func (param "x" 5)))
(export (;2;) "c" (func (type 10)))
(type (;11;) (func (param "x" 7)))
(export (;3;) "d" (func (type 11)))
)
)
(export (;0;) "foo:foo/foo" (instance (type 0)))
)
)
(export (;1;) "foo" (type 0))
(type (;2;)
(component
(type (;0;)
(component
(type (;0;)
(instance
(type (;0;) (record (field "s" string)))
(export (;1;) "r" (type (eq 0)))
(type (;2;) (variant (case "s" string)))
(export (;3;) "v" (type (eq 2)))
(type (;4;) (record (field "s" u32)))
(export (;5;) "r-no-string" (type (eq 4)))
(type (;6;) (variant (case "s" u32)))
(export (;7;) "v-no-string" (type (eq 6)))
(type (;8;) (func (param "x" 1)))
(export (;0;) "a" (func (type 8)))
(type (;9;) (func (param "x" 3)))
(export (;1;) "b" (func (type 9)))
(type (;10;) (func (param "x" 5)))
(export (;2;) "c" (func (type 10)))
(type (;11;) (func (param "x" 7)))
(export (;3;) "d" (func (type 11)))
)
)
(import "foo:foo/foo" (instance (;0;) (type 0)))
)
)
(export (;0;) "foo:foo/foo-world" (component (type 0)))
)
)
(export (;3;) "foo-world" (type 2))
(@custom "package-docs" "\01{}")
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)