Files
cli/vendor/wit-component/tests/interfaces/doc-comments/foo.wit.print

79 lines
1.2 KiB
Plaintext
Raw Normal View History

/// package docs;
package foo:foo;
/// interface docs
interface coverage-iface {
/// basic typedef docs
type t = u32;
/// record typedef docs
record r {
/// record field docs
f1: u8,
f2: u8,
}
flags fl {
/// flag docs
f1,
f2,
}
variant v {
/// variant case docs
c1(u8),
c2,
}
enum e {
/// enum case docs
c1,
c2,
}
resource res {
/// constructor docs
constructor();
/// method docs
m: func();
/// static func docs
s: static func();
}
/// interface func docs
f: func();
}
/// other comment forms
/// multi-line block
interface other-comment-forms {
/// one doc line
/// non-doc in the middle
/// another doc line
multiple-lines-split: func();
/// mixed forms; line doc
/// plus block doc
/// multi-line
mixed-forms: func();
}
/// world docs
world coverage-world {
/// world typedef docs
type t = u32;
/// world func import docs
import imp: func();
/// world func export docs
export exp: func();
/// world inline interface docs
export i: interface {
/// inline interface typedef docs
type t = u32;
/// inline interface func docs
f: func();
}
}