MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / unary

Method unary

aiscript-vm/src/parser/mod.rs:1677–1685  ·  view source on GitHub ↗
(&mut self, _can_assign: bool)

Source from the content-addressed store, hash-verified

1675 }
1676
1677 fn unary(&mut self, _can_assign: bool) -> Option<Expr<'gc>> {
1678 let operator = self.previous;
1679 let right = Box::new(self.parse_precedence(Precedence::Unary)?);
1680 Some(Expr::Unary {
1681 operator,
1682 right,
1683 line: operator.line,
1684 })
1685 }
1686
1687 fn binary(&mut self, _can_assign: bool) -> Option<Expr<'gc>> {
1688 let operator = self.previous;

Callers

nothing calls this directly

Calls 1

parse_precedenceMethod · 0.80

Tested by

no test coverage detected