/* * Copyright (c) 2023, Dan Klishch * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include "Forward.h" namespace JSSpecCompiler { class ExecutionContext { public: HashMap m_functions; }; class Function : public RefCounted { public: Function(ExecutionContext* context, StringView name, Tree ast); ExecutionContext* m_context; StringView m_name; Tree m_ast; }; }