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

Method new_expression_statement

core/src/renderer/js/ast.rs:117–119  ·  view source on GitHub ↗
(expression: Option<Rc<Self>>)

Source from the content-addressed store, hash-verified

115 }
116
117 pub fn new_expression_statement(expression: Option<Rc<Self>>) -> Option<Rc<Self>> {
118 Some(Rc::new(Node::ExpressionStatement(expression)))
119 }
120
121 pub fn new_block_statement(body: Vec<Option<Rc<Self>>>) -> Option<Rc<Self>> {
122 Some(Rc::new(Node::BlockStatement { body }))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected