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

Method new_assignment_expression

core/src/renderer/js/ast.rs:105–115  ·  view source on GitHub ↗
(
        operator: char,
        left: Option<Rc<Node>>,
        right: Option<Rc<Node>>,
    )

Source from the content-addressed store, hash-verified

103 }
104
105 pub fn new_assignment_expression(
106 operator: char,
107 left: Option<Rc<Node>>,
108 right: Option<Rc<Node>>,
109 ) -> Option<Rc<Self>> {
110 Some(Rc::new(Node::AssignmentExpression {
111 operator,
112 left,
113 right,
114 }))
115 }
116
117 pub fn new_expression_statement(expression: Option<Rc<Self>>) -> Option<Rc<Self>> {
118 Some(Rc::new(Node::ExpressionStatement(expression)))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected