MCPcopy Create free account
hub / github.com/arcjet/gravity / format_into

Method format_into

cmd/gravity/src/codegen/exports.rs:85–93  ·  view source on GitHub ↗
(self, tokens: &mut Tokens<Go>)

Source from the content-addressed store, hash-verified

83
84impl FormatInto<Go> for ExportGenerator<'_> {
85 fn format_into(self, tokens: &mut Tokens<Go>) {
86 for item in self.config.world.exports.values() {
87 match item {
88 WorldItem::Function(func) => self.generate_function(func, tokens),
89 WorldItem::Interface { .. } => todo!("generate interface exports"),
90 WorldItem::Type { .. } => todo!("generate type exports"),
91 }
92 }
93 }
94}
95
96#[cfg(test)]

Callers

nothing calls this directly

Calls 1

generate_functionMethod · 0.80

Tested by

no test coverage detected