Files
serein-flow/Serein.Script/Node/ClassTypeDefinitionNode.cs
2025-07-16 16:16:19 +08:00

55 lines
1.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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 TypeNode ClassType { get; }
/// <summary>
/// 类型中的属性
/// </summary>
public Dictionary<string, TypeNode> Propertys { get; }
public ClassTypeDefinitionNode(Dictionary<string, TypeNode> propertys, TypeNode className)
{
this.Propertys = propertys;
this.ClassType = className;
}
/* /// <summary>
/// 字段名称及字段类型
/// </summary>
[Obsolete("此属性已经过时将会改为Dictionary<string, string>", false)]
public Dictionary<TypeNode, Type> Fields { get; }
*/
/* /// <summary>
/// 字段名称及字段类型(Kvp[fididName:fidleTypeName])
/// </summary>
public Dictionary<TypeNode, string> FieldInfos { get; }
*/
//[Obsolete("此构造方法已经过时,可能在下一个版本中移除", false)]
}
}