Class NullParserRuleInvocationFrameManager
Default passive parser rule invocation-frame manager. It creates inert frames for lifecycle context propagation and does not retain current-frame state.
public sealed class NullParserRuleInvocationFrameManager : IParserRuleInvocationFrameManager
- Inheritance
-
NullParserRuleInvocationFrameManager
- Implements
- Inherited Members
- Extension Methods
Properties
Current
Gets no current frame because this implementation intentionally does not retain per-parse state.
public ParserRuleInvocationFrame? Current { get; }
Property Value
Instance
Gets the singleton no-op invocation-frame manager instance.
public static NullParserRuleInvocationFrameManager Instance { get; }
Property Value
Methods
Enter(string, int, ParserRuleInvocationDescriptor?)
Creates an inert parser rule invocation frame without enabling metadata execution.
public ParserRuleInvocationFrame Enter(string ruleName, int inputPosition, ParserRuleInvocationDescriptor? descriptor = null)
Parameters
ruleNamestringName of the parser rule being entered.
inputPositionintToken-stream position at the time of rule entry.
descriptorParserRuleInvocationDescriptorPassive rule metadata descriptor for the invocation, when available.
Returns
- ParserRuleInvocationFrame
An empty passive invocation frame carrying the supplied descriptor.
Exit(ParserRuleInvocationFrame, bool)
Performs no action when leaving a parser rule invocation.
public void Exit(ParserRuleInvocationFrame frame, bool succeeded)
Parameters
frameParserRuleInvocationFrameInvocation frame returned by Enter(string, int, ParserRuleInvocationDescriptor?).
succeededboolWhether the parser rule produced a parse node before leaving (ignored).