MCPcopy Create free account
hub / github.com/dcSpark/cddl-codegen / generate_constructor

Method generate_constructor

src/generation.rs:7431–7465  ·  view source on GitHub ↗

if init_fields exists, use these for values, otherwise assumes variables exist with same names

(
        &self,
        body: &mut dyn CodeBlock,
        before: &str,
        after: &str,
        init_fields: Option<&Vec<String>>,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

make_inline_deser_codeFunction · 0.80
generate_enumFunction · 0.80

Calls 3

as_refMethod · 0.80
lineMethod · 0.80
push_blockMethod · 0.80

Tested by

no test coverage detected