MCPcopy Create free account
hub / github.com/d0iasm/saba / function_declaration

Method function_declaration

core/src/renderer/js/ast.rs:512–516  ·  view source on GitHub ↗

FunctionDeclaration ::= "function" Identifier ( "(" ( FormalParameterList )? ")" ) FunctionBody

(&mut self)

Source from the content-addressed store, hash-verified

510
511 /// FunctionDeclaration ::= "function" Identifier ( "(" ( FormalParameterList )? ")" ) FunctionBody
512 fn function_declaration(&mut self) -> Option<Rc<Node>> {
513 let id = self.identifier();
514 let params = self.parameter_list();
515 Node::new_function_declaration(id, params, self.function_body())
516 }
517
518 /// SourceElement ::= FunctionDeclaration | Statement
519 fn source_element(&mut self) -> Option<Rc<Node>> {

Callers 1

source_elementMethod · 0.80

Calls 3

identifierMethod · 0.80
parameter_listMethod · 0.80
function_bodyMethod · 0.80

Tested by

no test coverage detected