mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-04-13 03:16:35 +08:00
优化了脚本生成AST时的代码提示,增加了脚本运行时错误提示。
This commit is contained in:
37
Serein.Script/Symbol/SymbolInfo.cs
Normal file
37
Serein.Script/Symbol/SymbolInfo.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using Serein.Script.Node;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Serein.Script.Symbol
|
||||
{
|
||||
public enum SymbolType
|
||||
{
|
||||
Identifier,
|
||||
FunctionReturn,
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 符号信息
|
||||
/// </summary>
|
||||
internal class SymbolInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 符号名称
|
||||
/// </summary>
|
||||
public string Name;
|
||||
|
||||
/// <summary>
|
||||
/// 对应类型
|
||||
/// </summary>
|
||||
public Type Type;
|
||||
|
||||
/// <summary>
|
||||
/// 节点
|
||||
/// </summary>
|
||||
public ASTNode Node;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user