mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
36 lines
900 B
C#
36 lines
900 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Serein.Script.Node
|
|
{
|
|
/// <summary>
|
|
/// 动态类型定义
|
|
/// </summary>
|
|
public class ClassTypeDefinitionNode : ASTNode
|
|
{
|
|
[Obsolete("此属性已经过时,可能在下一个版本中移除", false)]
|
|
public bool IsOverlay { get; set; }
|
|
|
|
/// <summary>
|
|
/// 类名称
|
|
/// </summary>
|
|
public string ClassName { get; }
|
|
|
|
/// <summary>
|
|
/// 字段名称及字段类型
|
|
/// </summary>
|
|
public Dictionary<string, Type> Fields { get; }
|
|
|
|
public ClassTypeDefinitionNode(Dictionary<string, Type> fields, string className, bool isOverlay)
|
|
{
|
|
this.Fields = fields;
|
|
this.ClassName = className;
|
|
IsOverlay = isOverlay;
|
|
}
|
|
}
|
|
|
|
}
|