2024-12-20 23:39:29 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Serein.Script.Node
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 集合索引获取
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class CollectionIndexNode : ASTNode
|
|
|
|
|
|
{
|
2025-07-11 20:52:21 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 集合来源
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public ASTNode Collection { get; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 索引来源
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public ASTNode Index { get; }
|
|
|
|
|
|
public CollectionIndexNode(ASTNode TargetValue,ASTNode indexValue)
|
2024-12-20 23:39:29 +08:00
|
|
|
|
{
|
2025-07-11 20:52:21 +08:00
|
|
|
|
this.Collection = TargetValue;
|
|
|
|
|
|
this.Index = indexValue;
|
2024-12-20 23:39:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|