Prism Ruby parser
Loading...
Searching...
No Matches
prism::detail::visit_context< F > Struct Template Reference

The state shared between a walk and its C callback, passed through the C function's void * data parameter. More...

#include <node.hpp>

Public Member Functions

 visit_context (F *visitor) noexcept
 The context for a visit, holding the visitor and any exception thrown.

Data Fields

F * callable
 The visitor that the walk calls for each node.

Detailed Description

template<typename F>
struct prism::detail::visit_context< F >

The state shared between a walk and its C callback, passed through the C function's void * data parameter.

Constructor & Destructor Documentation

◆ visit_context()

template<typename F>
prism::detail::visit_context< F >::visit_context ( F * visitor)
inlineexplicitnoexcept

The context for a visit, holding the visitor and any exception thrown.

Parameters
visitorThe visitor callable to be used for each node.

The documentation for this struct was generated from the following file: