MCPcopy Create free account
hub / github.com/borgo-lang/borgo / expr_try

Method expr_try

compiler/src/parser.rs:654–665  ·  view source on GitHub ↗
(&mut self, lhs: Expr)

Source from the content-addressed store, hash-verified

652 }
653
654 fn expr_try(&mut self, lhs: Expr) -> Expr {
655 assert!(self.tok.kind == TokenKind::Question);
656
657 // consume '?'
658 let start = self.next();
659
660 Expr::Try {
661 expr: lhs.into(),
662 ty: Type::dummy(),
663 span: self.make_span(start),
664 }
665 }
666
667 fn expr_struct_call(&mut self, lhs: Expr) -> Expr {
668 assert!(self.tok.kind == TokenKind::LCurly);

Callers 1

expr_postfixMethod · 0.80

Calls 2

make_spanMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected