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

Method import

cmd/gravity/src/codegen/func.rs:66–77  ·  view source on GitHub ↗

Create a new exported function.

(param_name: &'a GoIdentifier, result: GoResult, sizes: &'a SizeAlign)

Source from the content-addressed store, hash-verified

64
65 /// Create a new exported function.
66 pub fn import(param_name: &'a GoIdentifier, result: GoResult, sizes: &'a SizeAlign) -> Self {
67 Self {
68 direction: Direction::Import { param_name },
69 args: Vec::new(),
70 result,
71 tmp: 0,
72 body: Tokens::new(),
73 block_storage: Vec::new(),
74 blocks: Vec::new(),
75 sizes,
76 }
77 }
78
79 fn tmp(&mut self) -> usize {
80 let ret = self.tmp;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected