Interface IParserRuleLifecycleExecutor
Executes parser rule lifecycle hooks (@init and @after) under a runtime feature policy.
Implementations may execute side effects that change observable parser execution-context state.
public interface IParserRuleLifecycleExecutor
- Extension Methods
Methods
Execute(ParserRuleLifecyclePhase, string, ParserRuleLifecycleContext)
Executes a rule lifecycle hook for the specified phase and rule name. Implementations should be no-ops when the phase and rule combination is unhandled.
void Execute(ParserRuleLifecyclePhase phase, string ruleName, ParserRuleLifecycleContext context)
Parameters
phaseParserRuleLifecyclePhaseLifecycle phase being executed (
InitorAfter).ruleNamestringName of the parser rule triggering the lifecycle event.
contextParserRuleLifecycleContextImmutable lifecycle context providing positional metadata.