mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-19 16:06:33 +08:00
为Serein.Script增加类型分析,增加了更加详细的Number类型节点,优化了对象节点的链式表达式,修复了Lexer分析词法时,部分Token代码属性错误的问题。
This commit is contained in:
@@ -11,12 +11,19 @@ namespace Serein.Script.Node
|
||||
/// </summary>
|
||||
public class CollectionIndexNode : ASTNode
|
||||
{
|
||||
public ASTNode TargetValue { get; }
|
||||
public ASTNode IndexValue { get; }
|
||||
public CollectionIndexNode(ASTNode collectionValue,ASTNode indexValue)
|
||||
/// <summary>
|
||||
/// 集合来源
|
||||
/// </summary>
|
||||
public ASTNode Collection { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 索引来源
|
||||
/// </summary>
|
||||
public ASTNode Index { get; }
|
||||
public CollectionIndexNode(ASTNode TargetValue,ASTNode indexValue)
|
||||
{
|
||||
this.TargetValue = collectionValue;
|
||||
this.IndexValue = indexValue;
|
||||
this.Collection = TargetValue;
|
||||
this.Index = indexValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user