public override AST.RuleTree VisitSingleOutcome([NotNull] WordLangParser.SingleOutcomeContext context) { var outcome = new AST.Outcome(); //outcome.Action = new AST.FieldString() //{ // Value = context.text().NAME().CombineTokens(), // StartIndex = context.text().NAME().First().Symbol.StartIndex, // StopIndex = context.text().NAME().Last().Symbol.StopIndex //}; return(outcome); }
public bool Equals(Outcome other) { return(other != null && other.Action.Equals(Action)); }