fn visit_fun_decl(&mut self, fun: &mut super::FunctionDecl) -> VisitorResult {
        self.state.push(State::Function);

        // TODO: do we need to validate function parameter lists?
        // for param in fun.params.iter_mut() {
        //     self.visit_ident(param)?;
        // }

        self.visit_block_stmt(&mut fun.body)?;

        self.state
            .pop()
            .expect("expected validator state not to be empty");

        Ok(())
    }
/// Mark that we're in a function body.
Mark that we're in a function body.
Mark that we ' re in a function body .
fn visit_fun_decl(&mut self, fun: &mut super::FunctionDecl) -> VisitorResult {
        self.state.push(State::Function);
        // TODO: do we need to validate function parameter lists?
        // for param in fun.params.iter_mut() {
        //     self.visit_ident(param)?;
        // }
        self.visit_block_stmt(&mut fun.body)?;
        self.state
            .pop()
            .expect("expected validator state not to be empty");
        Ok(())
    }
fn visit_fun_decl ( & mut self , fun : & mut super :: FunctionDecl ) -> VisitorResult { self . state . push ( State :: Function ) ; // TODO: do we need to validate function parameter lists? // for param in fun.params.iter_mut() { //     self.visit_ident(param)?; // } self . visit_block_stmt ( & mut fun . body ) ? ; self . state . pop ( ) . expect ( " " ) ; Ok ( ( ) ) }
Mark that we're in a function body.
Mark that we ' re in a function body .
&mut self
fun
&mut super::FunctionDecl