pub fn ty(&self) -> P<MuType> {
        match self.v {
            TreeNode_::Instruction(ref inst) => {
                if inst.value.is_some() {
                    let ref value = inst.value.as_ref().unwrap();
                    if value.len() != 1 {
                        panic!("the node {} does not have one result value", self);
                    }

                    value[0].ty.clone()
                } else {
                    panic!("expected result from the node {}", self);
                }
            }
            TreeNode_::Value(ref pv) => pv.ty.clone()
        }
    }
// The type of the node (for a value node)
The type of the node (for a value node)
The type of the node ( for a value node )
pub fn ty(&self) -> P<MuType> {
        match self.v {
            TreeNode_::Instruction(ref inst) => {
                if inst.value.is_some() {
                    let ref value = inst.value.as_ref().unwrap();
                    if value.len() != 1 {
                        panic!("the node {} does not have one result value", self);
                    }
                    value[0].ty.clone()
                } else {
                    panic!("expected result from the node {}", self);
                }
            }
            TreeNode_::Value(ref pv) => pv.ty.clone()
        }
    }
pub fn ty ( & self ) -> P < MuType > { match self . v { TreeNode_ :: Instruction ( ref inst ) => { if inst . value . is_some ( ) { let ref value = inst . value . as_ref ( ) . unwrap ( ) ; if value . len ( ) != 1 { panic ! ( " " self ) ; } value [ 0 ] . ty . clone ( ) } else { panic ! ( " " self ) ; } } TreeNode_ :: Value ( ref pv ) => pv . ty . clone ( ) } }
The type of the node (for a value node)
The type of the node ( for a value node )
&self
&self