mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-02 15:50:47 +08:00
28 lines
616 B
C#
28 lines
616 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Serein.Script.Node
|
|
{
|
|
/// <summary>
|
|
/// 数组定义节点
|
|
/// <para>arr = [1, 2, 3, 4, 5];</para>
|
|
/// <para>arr = ["A","B","C"];</para>
|
|
/// </summary>
|
|
internal class ArrayDefintionNode : ASTNode
|
|
{
|
|
/// <summary>
|
|
/// 数组子项
|
|
/// </summary>
|
|
public List<ASTNode> Elements { get; } = new List<ASTNode>();
|
|
|
|
public ArrayDefintionNode(List<ASTNode> elements)
|
|
{
|
|
Elements = elements;
|
|
}
|
|
|
|
}
|
|
}
|