MCPcopy Create free account
hub / github.com/hashintel/hash / walk_call_expr

Function walk_call_expr

libs/@local/hashql/ast/src/visit.rs:437–459  ·  view source on GitHub ↗
(
    visitor: &mut T,
    CallExpr {
        id,
        span,
        function,
        arguments,
        labeled_arguments,
    }: &mut CallExpr<'heap>,
)

Source from the content-addressed store, hash-verified

435}
436
437pub fn walk_call_expr<'heap, T: Visitor<'heap> + ?Sized>(
438 visitor: &mut T,
439 CallExpr {
440 id,
441 span,
442 function,
443 arguments,
444 labeled_arguments,
445 }: &mut CallExpr<'heap>,
446) {
447 visitor.visit_id(id);
448 visitor.visit_span(span);
449
450 visitor.visit_expr(function);
451
452 for argument in arguments {
453 visitor.visit_argument(argument);
454 }
455
456 for labeled_argument in labeled_arguments {
457 visitor.visit_labeled_argument(labeled_argument);
458 }
459}
460
461pub fn walk_argument<'heap, T: Visitor<'heap> + ?Sized>(
462 visitor: &mut T,

Callers 2

visit_call_exprMethod · 0.85
visit_call_exprMethod · 0.85

Calls 5

visit_argumentMethod · 0.80
visit_idMethod · 0.45
visit_spanMethod · 0.45
visit_exprMethod · 0.45

Tested by

no test coverage detected