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)
 {
 }
示例#3
0
 public ForEachNode(DocumentIdNode documentIdNode, IForEach forEach) : base(documentIdNode, forEach) => _forEach = forEach;
示例#4
0
 public XPathForEachEvaluator(IForEach forEach) : base(forEach)
 {
 }
示例#5
0
 protected override void Visit(ref IForEach forEach) => AddErrorMessage(forEach, Resources.ErrorMessage_ForEachNotSupportedForNull);