MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / visit_expr

Method visit_expr

crates/rustc_codegen_spirv/src/attr.rs:464–472  ·  view source on GitHub ↗
(&mut self, expr: &'tcx hir::Expr<'tcx>)

Source from the content-addressed store, hash-verified

462 }
463
464 fn visit_expr(&mut self, expr: &'tcx hir::Expr<'tcx>) {
465 let target = match expr.kind {
466 hir::ExprKind::Closure { .. } => Target::Closure,
467 _ => Target::Expression,
468 };
469
470 self.check_spirv_attributes(expr.hir_id, target);
471 intravisit::walk_expr(self, expr);
472 }
473
474 fn visit_variant(&mut self, variant: &'tcx hir::Variant<'tcx>) {
475 self.check_spirv_attributes(variant.hir_id, Target::Variant);

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected