Table of Contents

Class NullParserRuleInvocationFrameManager

Namespace
Utils.Parser.Runtime
Assembly
Utils.Parser.dll

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

ParserRuleInvocationFrame

Instance

Gets the singleton no-op invocation-frame manager instance.

public static NullParserRuleInvocationFrameManager Instance { get; }

Property Value

NullParserRuleInvocationFrameManager

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

ruleName string

Name of the parser rule being entered.

inputPosition int

Token-stream position at the time of rule entry.

descriptor ParserRuleInvocationDescriptor

Passive 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

frame ParserRuleInvocationFrame

Invocation frame returned by Enter(string, int, ParserRuleInvocationDescriptor?).

succeeded bool

Whether the parser rule produced a parse node before leaving (ignored).