pub fn discard_name(self) -> Result<Node, Error> {
        // TODO: replace this function with a prior type checking

        if let Item::Assign(_) = self.item {
            Err(Error::new(Reason::Unexpected {
                found: "alias".to_string(),
            })
            .with_span(self.span))
        } else {
            Ok(self)
        }
    }
/// Return an error if this is a named expression.
Return an error if this is a named expression.
Return an error if this is a named expression .
pub fn discard_name(self) -> Result<Node, Error> {
        // TODO: replace this function with a prior type checking
        if let Item::Assign(_) = self.item {
            Err(Error::new(Reason::Unexpected {
                found: "alias".to_string(),
            })
            .with_span(self.span))
        } else {
            Ok(self)
        }
    }
pub fn discard_name ( self ) -> Result < Node , Error > { // TODO: replace this function with a prior type checking if let Item :: Assign ( _ ) = self . item { Err ( Error :: new ( Reason :: Unexpected { found : " " . to_string ( ) , } ) . with_span ( self . span ) ) } else { Ok ( self ) } }
Return an error if this is a named expression.
Return an error if this is a named expression .
self