using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Serein.Script.Node
{
///
/// 集合索引获取
///
public class CollectionIndexNode : ASTNode
{
///
/// 集合来源
///
public ASTNode Collection { get; }
///
/// 索引来源
///
public ASTNode Index { get; }
public CollectionIndexNode(ASTNode Collection, ASTNode indexValue)
{
this.Collection = Collection;
this.Index = indexValue;
}
}
///
/// 集合赋值节点
///
public class CollectionAssignmentNode : ASTNode
{
///
/// 集合来源
///
public CollectionIndexNode Collection { get; }
///
/// 索引来源
///
public ASTNode Value { get; }
public CollectionAssignmentNode(CollectionIndexNode collection, ASTNode value)
{
this.Collection = collection;
this.Value = value;
}
}
}