2024-12-20 23:39:29 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Serein.Script.Node
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 表示对对象成员的赋值
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class MemberAssignmentNode : ASTNode
|
|
|
|
|
|
{
|
2025-07-09 21:49:26 +08:00
|
|
|
|
/// <summary>
|
2025-07-11 20:52:21 +08:00
|
|
|
|
/// 对象来源
|
2025-07-09 21:49:26 +08:00
|
|
|
|
/// </summary>
|
2024-12-20 23:39:29 +08:00
|
|
|
|
public ASTNode Object { get; }
|
2025-07-11 20:52:21 +08:00
|
|
|
|
|
2025-07-09 21:49:26 +08:00
|
|
|
|
/// <summary>
|
2025-07-11 20:52:21 +08:00
|
|
|
|
/// 对象中要赋值的成员的名称
|
2025-07-09 21:49:26 +08:00
|
|
|
|
/// </summary>
|
2024-12-20 23:39:29 +08:00
|
|
|
|
public string MemberName { get; }
|
2025-07-09 21:49:26 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 值来源
|
|
|
|
|
|
/// </summary>
|
2024-12-20 23:39:29 +08:00
|
|
|
|
public ASTNode Value { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public MemberAssignmentNode(ASTNode obj, string memberName, ASTNode value)
|
|
|
|
|
|
{
|
|
|
|
|
|
Object = obj;
|
|
|
|
|
|
MemberName = memberName;
|
|
|
|
|
|
Value = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|