mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 18:34:58 +00:00

Currently, they are not extremely useful, but the plan is to store all function-local state in JSSpecCompiler::Function and all "translation unit" state in ExecutionContext.
19 lines
331 B
C++
19 lines
331 B
C++
/*
|
|
* Copyright (c) 2023, Dan Klishch <danilklishch@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include "Function.h"
|
|
#include "AST/AST.h"
|
|
|
|
namespace JSSpecCompiler {
|
|
|
|
Function::Function(ExecutionContext* context, StringView name, Tree ast)
|
|
: m_context(context)
|
|
, m_name(name)
|
|
, m_ast(move(ast))
|
|
{
|
|
}
|
|
|
|
}
|