11 for (
const std::shared_ptr<MacroExecutor>& executor :
m_executors)
13 if (executor->canHandle(node))
15 if (executor->applyMacro(node))
The Chain of Responsibility class for running nodes through MacroExecutors.
MacroExecutorPipeline()=default
std::vector< std::shared_ptr< MacroExecutor > > m_executors
bool applyMacro(Node &node) const
Passes node through all MacroExecutors sequentially.
A node of an Abstract Syntax Tree for ArkScript.