MCPcopy Create free account
hub / github.com/d0iasm/vulbr / new_function_declaration

Method new_function_declaration

src/renderer/js/ast.rs:120–126  ·  view source on GitHub ↗
(
        id: Option<Rc<Self>>,
        params: Vec<Option<Rc<Self>>>,
        body: Option<Rc<Self>>,
    )

Source from the content-addressed store, hash-verified

118 }
119
120 pub fn new_function_declaration(
121 id: Option<Rc<Self>>,
122 params: Vec<Option<Rc<Self>>>,
123 body: Option<Rc<Self>>,
124 ) -> Option<Rc<Self>> {
125 Some(Rc::new(Node::FunctionDeclaration { id, params, body }))
126 }
127
128 pub fn new_variable_declarator(
129 id: Option<Rc<Self>>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected