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

Method new_binary_expression

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

Source from the content-addressed store, hash-verified

91
92impl Node {
93 pub fn new_binary_expression(
94 operator: char,
95 left: Option<Rc<Node>>,
96 right: Option<Rc<Node>>,
97 ) -> Option<Rc<Self>> {
98 Some(Rc::new(Node::BinaryExpression {
99 operator,
100 left,
101 right,
102 }))
103 }
104
105 pub fn new_assignment_expression(
106 operator: char,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected