Spicy
Public Member Functions | List of all members
spicy::detail::codegen::production::Meta Class Reference

Public Member Functions

auto field () const
 
bool isFieldProduction () const
 
auto container () const
 
auto forEach () const
 
void setField (const NodeRef &n, bool is_field_production)
 
void setContainer (const NodeRef &n)
 
void setForEach (const NodeRef &n)
 
NodeRef fieldRef () const
 
NodeRef containerRef () const
 

Member Function Documentation

◆ container()

auto spicy::detail::codegen::production::Meta::container ( ) const
inline

If this production corresponds to a container's item field, this returns the container (once set).

◆ field()

auto spicy::detail::codegen::production::Meta::field ( ) const
inline

Returns a unit field associated with the production, if set.

◆ forEach()

auto spicy::detail::codegen::production::Meta::forEach ( ) const
inline

If the production corresponds to a for-each hook, this returns the corresponding field (once set).

◆ isFieldProduction()

bool spicy::detail::codegen::production::Meta::isFieldProduction ( ) const
inline

Returns true if there's a field associated with this production, and the production is the top-level entry point for parsing that field (vs. being a nested production further down in the parse tree).


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