MCPcopy Create free account
hub / github.com/davidblewett/rure-python / visit_class_pre

Method visit_class_pre

regex/regex-syntax/src/ast/visitor.rs:371–385  ·  view source on GitHub ↗

Call the appropriate `Visitor` methods given an inductive step.

(
        &self,
        ast: &ClassInduct<'a>,
        visitor: &mut V,
    )

Source from the content-addressed store, hash-verified

369
370 /// Call the appropriate `Visitor` methods given an inductive step.
371 fn visit_class_pre<V: Visitor>(
372 &self,
373 ast: &ClassInduct<'a>,
374 visitor: &mut V,
375 ) -> Result<(), V::Err> {
376 match *ast {
377 ClassInduct::Item(item) => {
378 visitor.visit_class_set_item_pre(item)?;
379 }
380 ClassInduct::BinaryOp(op) => {
381 visitor.visit_class_set_binary_op_pre(op)?;
382 }
383 }
384 Ok(())
385 }
386
387 /// Call the appropriate `Visitor` methods given an inductive step.
388 fn visit_class_post<V: Visitor>(

Callers 1

visit_classMethod · 0.80

Tested by

no test coverage detected