public override Symbol VisitQuery([NotNull] PageInterpreterParser.QueryContext context) { queryLabel = context?.Text()?.GetText() ?? Result.Results.Count.ToString(); base.VisitQuery(context); return(new Symbol(SymbolType.Success)); }
public override object VisitQuery([NotNull] PageInterpreterParser.QueryContext context) { var queryLabel = context?.Text()?.GetText(); if (string.IsNullOrWhiteSpace(queryLabel)) { throw new SyntaxException("Queries need to be labelled"); } currentQuery = queryLabel; base.VisitQuery(context); return(null); }