C# Класс Antlr4.Runtime.InterpreterRuleContext

This class extends ParserRuleContext by allowing the value of RuleIndex() to be explicitly set for the context.

ParserRuleContext does not include field storage for the rule index since the context classes created by the code generator override the RuleIndex() method to return the correct value for that context. Since the parser interpreter does not use the context classes generated for a parser, this class (with slightly more memory overhead per node) is used to provide equivalent functionality.

Наследование: ParserRuleContext
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
InterpreterRuleContext ( ParserRuleContext parent, int invokingStateNumber, int ruleIndex ) : Antlr4.Runtime

Constructs a new InterpreterRuleContext with the specified parent, invoking state, and rule index.

Описание методов

InterpreterRuleContext() публичный метод

Constructs a new InterpreterRuleContext with the specified parent, invoking state, and rule index.
public InterpreterRuleContext ( ParserRuleContext parent, int invokingStateNumber, int ruleIndex ) : Antlr4.Runtime
parent ParserRuleContext The parent context.
invokingStateNumber int The invoking state number.
ruleIndex int The rule index for the current context.
Результат Antlr4.Runtime