Interface IParserRuleCallExecutionPolicy
Defines explicit opt-in callbacks around parser rule calls. Implementations may observe call-site metadata and can explicitly request managed parameter seeds through the narrow current-target API on ParserRuleCallExecutionContext. The parser does not evaluate or bind arguments automatically.
public interface IParserRuleCallExecutionPolicy
- Extension Methods
Methods
AfterRuleCall(ParserRuleCallExecutionContext)
Handles a parser rule call after the target rule has succeeded or failed.
void AfterRuleCall(ParserRuleCallExecutionContext context)
Parameters
contextParserRuleCallExecutionContextPassive metadata for the completed parser rule call, including its success status and call result when available.
BeforeRuleCall(ParserRuleCallExecutionContext)
Handles a parser rule call immediately before the target rule is parsed.
void BeforeRuleCall(ParserRuleCallExecutionContext context)
Parameters
contextParserRuleCallExecutionContextPassive metadata for the current parser rule call.