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-03-15 14:02:12 +08:00
|
|
|
|
public ASTNode TargetValue { get; }
|
2024-12-20 23:39:29 +08:00
|
|
|
|
public ASTNode IndexValue { get; }
|
2025-03-15 14:02:12 +08:00
|
|
|
|
public CollectionIndexNode(ASTNode collectionValue,ASTNode indexValue)
|
2024-12-20 23:39:29 +08:00
|
|
|
|
{
|
2025-03-15 14:02:12 +08:00
|
|
|
|
this.TargetValue = collectionValue;
|
2024-12-20 23:39:29 +08:00
|
|
|
|
this.IndexValue = indexValue;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|