mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-13 13:09:25 +08:00
重写脚本解释器的实现,提高其可读性。
This commit is contained in:
@@ -20,10 +20,33 @@ namespace Serein.Script.Node
|
||||
/// 索引来源
|
||||
/// </summary>
|
||||
public ASTNode Index { get; }
|
||||
public CollectionIndexNode(ASTNode TargetValue,ASTNode indexValue)
|
||||
|
||||
public CollectionIndexNode(ASTNode Collection, ASTNode indexValue)
|
||||
{
|
||||
this.Collection = TargetValue;
|
||||
this.Collection = Collection;
|
||||
this.Index = indexValue;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 集合赋值节点
|
||||
/// </summary>
|
||||
public class CollectionAssignmentNode : ASTNode
|
||||
{
|
||||
/// <summary>
|
||||
/// 集合来源
|
||||
/// </summary>
|
||||
public CollectionIndexNode Collection { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 索引来源
|
||||
/// </summary>
|
||||
public ASTNode Value { get; }
|
||||
|
||||
public CollectionAssignmentNode(CollectionIndexNode collection, ASTNode value)
|
||||
{
|
||||
this.Collection = collection;
|
||||
this.Value = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user