fn new_constant(
        namegen: &mut NameGenerator,
        num: &ast::BitNum,
    ) -> (ast::Id, Self) {
        let name = ast::Id::new(namegen.gen_name("$const"), num.span.clone());
        let node = Node {
            name: name.clone(),
            data: NodeData::Constant(num.clone()),
            signature: ast::Signature {
                inputs: vec![],
                outputs: vec![("out", num.width).into()],
            },
        };
        (name, node)
    }
/// Create a constant node for the number `num`
Create a constant node for the number `num`
Create a constant node for the number ` num `
fn new_constant(
        namegen: &mut NameGenerator,
        num: &ast::BitNum,
    ) -> (ast::Id, Self) {
        let name = ast::Id::new(namegen.gen_name("$const"), num.span.clone());
        let node = Node {
            name: name.clone(),
            data: NodeData::Constant(num.clone()),
            signature: ast::Signature {
                inputs: vec![],
                outputs: vec![("out", num.width).into()],
            },
        };
        (name, node)
    }
fn new_constant ( namegen : & mut NameGenerator , num : & ast :: BitNum , ) -> ( ast :: Id , Self ) { let name = ast :: Id :: new ( namegen . gen_name ( " " ) , num . span . clone ( ) ) ; let node = Node { name : name . clone ( ) , data : NodeData :: Constant ( num . clone ( ) ) , signature : ast :: Signature { inputs : vec ! [ ] , outputs : vec ! [ ( " " num width ) into ( ) ] , } , } ; ( name , node ) }
Create a constant node for the number `num`
Create a constant node for the number ` num `
namegen
&mut NameGenerator
num
&ast::BitNum