mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-06 01:30:47 +08:00
重写脚本解释器的实现,提高其可读性。
This commit is contained in:
28
Serein.Script/Node/FlowControl/ReturnNode.cs
Normal file
28
Serein.Script/Node/FlowControl/ReturnNode.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Serein.Script.Node.FlowControl
|
||||
{
|
||||
/// <summary>
|
||||
/// 返回值
|
||||
/// </summary>
|
||||
public class ReturnNode : ASTNode
|
||||
{
|
||||
/// <summary>
|
||||
/// 返回值来源
|
||||
/// </summary>
|
||||
public ASTNode Value { get; }
|
||||
|
||||
public ReturnNode(ASTNode returnNode)
|
||||
{
|
||||
Value = returnNode;
|
||||
}
|
||||
public ReturnNode()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user