MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / constructor_target

Method constructor_target

crates/hll-to-ir/src/monomorphize.rs:1738–1745  ·  view source on GitHub ↗

Resolve a unit-variant constructor (`None`) against the expected enum type, returning its mangled variant name.

(&self, name: &str, expected: Option<&Type>)

Source from the content-addressed store, hash-verified

1736 }
1737 }
1738 Ok(())
1739}
1740
1741fn specialize_function(
1742 declaration: &mut Declaration,
1743 base_name: &str,
1744 type_args: &[Type],
1745 substitutions: &Substitutions,
1746) {
1747 let DeclNode::Function {
1748 name,

Callers 2

rewrite_expr_usesMethod · 0.80

Calls 2

expected_enum_nameFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected