Class NamedLiteralRuleCallExecutionPolicy
Explicitly binds named simple literals to declared parser rule parameter names by exact ordinal name. Declared parameter types are metadata only and are not validated by this policy.
public sealed class NamedLiteralRuleCallExecutionPolicy : IParserRuleCallExecutionPolicy
- Inheritance
-
NamedLiteralRuleCallExecutionPolicy
- Implements
- Inherited Members
- Extension Methods
Constructors
NamedLiteralRuleCallExecutionPolicy(ParserRuleCallBindingFailureBehavior)
Initializes a named literal rule-call execution policy.
public NamedLiteralRuleCallExecutionPolicy(ParserRuleCallBindingFailureBehavior failureBehavior = ParserRuleCallBindingFailureBehavior.IgnoreCall)
Parameters
failureBehaviorParserRuleCallBindingFailureBehaviorBehavior used when call metadata cannot be bound safely.
Methods
AfterRuleCall(ParserRuleCallExecutionContext)
Performs no post-call binding or result transformation.
public void AfterRuleCall(ParserRuleCallExecutionContext context)
Parameters
contextParserRuleCallExecutionContextMetadata for the completed parser rule call.
BeforeRuleCall(ParserRuleCallExecutionContext)
Validates exact named-parameter coverage and every literal before writing one rollback-managed seed batch. Existing seeds for matching target parameters are overwritten; unrelated seeds remain unchanged.
public void BeforeRuleCall(ParserRuleCallExecutionContext context)
Parameters
contextParserRuleCallExecutionContextMetadata and managed seed access for the current parser rule call.