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

Method new_binary_expression

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

Source from the content-addressed store, hash-verified

82
83impl Node {
84 pub fn new_binary_expression(
85 operator: char,
86 left: Option<Rc<Node>>,
87 right: Option<Rc<Node>>,
88 ) -> Option<Rc<Self>> {
89 Some(Rc::new(Node::BinaryExpression {
90 operator,
91 left,
92 right,
93 }))
94 }
95
96 pub fn new_assignment_expression(
97 operator: char,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected