This commit is contained in:
2025-12-22 13:39:17 +08:00
parent 720ae2bb26
commit 26bc387032
5 changed files with 69 additions and 12 deletions

View File

@@ -24,6 +24,8 @@ namespace Fig
std::shared_ptr<Context> closureContext;
FunctionStruct() = default;
FunctionStruct(Ast::FunctionParameters _paras, TypeInfo _retType, Ast::BlockStatement _body, ContextPtr _closureContext) :
id(nextId()), // 分配唯一 ID
paras(std::move(_paras)),