using Antlr4.Runtime.Atn;
using Antlr4.Runtime.Sharpen;
namespace Antlr4.Runtime.Atn
{
public sealed class ActionTransition : Transition
{
public readonly int ruleIndex;
public readonly int actionIndex;
public readonly bool isCtxDependent;
public ActionTransition(ATNState target, int ruleIndex)
: this(target, ruleIndex, -1, false)
{
}
public ActionTransition(ATNState target, int ruleIndex, int actionIndex, bool isCtxDependent)
: base(target)
{
this.ruleIndex = ruleIndex;
this.actionIndex = actionIndex;
this.isCtxDependent = isCtxDependent;
}
public override Antlr4.Runtime.Atn.TransitionType TransitionType
{
get
{
return Antlr4.Runtime.Atn.TransitionType.ACTION;
}
}
public override bool IsEpsilon
{
get
{
return true;
}
}
public override bool Matches(int symbol, int minVocabSymbol, int maxVocabSymbol)
{
return false;
}
public override string ToString()
{
return "action_" + ruleIndex + ":" + actionIndex;
}
}
}