public override void ExitForeach_select_command([NotNull] CrawlLangParser.Foreach_select_commandContext context) { string selector = context.selector().GetText().Trim('\''); ForEachSelectCommand forEachSelectCommand = new ForEachSelectCommand(_CurrentBlock, selector, _ExecutionEngine.ForEachSelect_Head, _ExecutionEngine.ForEachSelect_IterationBegin, _ExecutionEngine.ForEachSelect_IterationEnd, _ExecutionEngine.ForEachSelect_Tail); _BlockIds.Pop(); _CurrentBlock.Add(forEachSelectCommand); }
public abstract override void ExitForeach_select_command([NotNull] CrawlLangParser.Foreach_select_commandContext context);
public override void EnterForeach_select_command([NotNull] CrawlLangParser.Foreach_select_commandContext context) { _BlockIds.Push(Guid.NewGuid()); _CommandBlocks.Add(_CurrentBlockId, new List <ICommand>()); }