Lines Matching refs:expr

190             HirFrame::Expr(expr) => expr,
191 _ => panic!("tried to unwrap expr from HirFrame, got: {:?}", self),
331 let expr = Hir::class(hir::Class::Unicode(cls));
332 self.push(HirFrame::Expr(expr));
347 let expr = Hir::class(hir::Class::Bytes(cls));
348 self.push(HirFrame::Expr(expr));
352 let expr = self.pop().unwrap().unwrap_expr();
353 self.push(HirFrame::Expr(self.hir_repetition(x, expr)));
356 let expr = self.pop().unwrap().unwrap_expr();
359 self.push(HirFrame::Expr(self.hir_group(x, expr)));
363 while let Some(HirFrame::Expr(expr)) = self.pop() {
364 if !expr.kind().is_empty() {
365 exprs.push(expr);
373 while let Some(HirFrame::Expr(expr)) = self.pop() {
374 exprs.push(expr);
769 fn hir_group(&self, group: &ast::Group, expr: Hir) -> Hir {
782 Hir::group(hir::Group { kind, hir: Box::new(expr) })
785 fn hir_repetition(&self, rep: &ast::Repetition, expr: Hir) -> Hir {
805 Hir::repetition(hir::Repetition { kind, greedy, hir: Box::new(expr) })
1210 fn hir_group(i: u32, expr: Hir) -> Hir {
1213 hir: Box::new(expr),
1217 fn hir_group_name(i: u32, name: &str, expr: Hir) -> Hir {
1223 hir: Box::new(expr),
1227 fn hir_group_nocap(expr: Hir) -> Hir {
1230 hir: Box::new(expr),
1234 fn hir_quest(greedy: bool, expr: Hir) -> Hir {
1238 hir: Box::new(expr),
1242 fn hir_star(greedy: bool, expr: Hir) -> Hir {
1246 hir: Box::new(expr),
1250 fn hir_plus(greedy: bool, expr: Hir) -> Hir {
1254 hir: Box::new(expr),
1258 fn hir_range(greedy: bool, range: hir::RepetitionRange, expr: Hir) -> Hir {
1262 hir: Box::new(expr),
1312 fn hir_case_fold(expr: Hir) -> Hir {
1313 match expr.into_kind() {
1318 _ => panic!("cannot case fold non-class Hir expr"),
1322 fn hir_negate(expr: Hir) -> Hir {
1323 match expr.into_kind() {
1328 _ => panic!("cannot negate non-class Hir expr"),