public override TreeViewItem VisitCondition([NotNull] RobotGrammarParser.ConditionContext context) { TreeViewItem item = new TreeViewItem(); item.Header = ""; if (context.NOT() != null) { item.Header += context.NOT().GetText() == "!" ? "!" : "not "; } if (context.WALLCMD() != null) { item.Header += context.WALLCMD().GetText(); } else if (context.FREECMD() != null) { item.Header += context.FREECMD().GetText(); } return(item); }
public override object VisitCondition([NotNull] RobotGrammarParser.ConditionContext context) { return(base.VisitCondition(context)); }