public DefaultForEachEvaluator(IForEach forEach) { _forEach = forEach ?? throw new ArgumentNullException(nameof(forEach)); Infra.NotNull(forEach.Array); Infra.NotNull(forEach.Item); ArrayEvaluator = forEach.Array.As <IArrayEvaluator>(); ItemEvaluator = forEach.Item.As <ILocationEvaluator>(); IndexEvaluator = forEach.Index?.As <ILocationEvaluator>(); ActionEvaluatorList = forEach.Action.AsArrayOf <IExecutableEntity, IExecEvaluator>(); }
public EcmaScriptForEachEvaluator(IForEach forEach) : base(forEach) { }
public ForEachNode(DocumentIdNode documentIdNode, IForEach forEach) : base(documentIdNode, forEach) => _forEach = forEach;
public XPathForEachEvaluator(IForEach forEach) : base(forEach) { }
protected override void Visit(ref IForEach forEach) => AddErrorMessage(forEach, Resources.ErrorMessage_ForEachNotSupportedForNull);