mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
32 lines
1.2 KiB
C++
32 lines
1.2 KiB
C++
#include "CompiledScript.h"
|
|
|
|
#include <utility>
|
|
|
|
#include "StoredToken.h"
|
|
#include "compiler/file/SourceFileIdentifier.h"
|
|
#include "compiler/representation/ExportedFunction.h"
|
|
#include "compiler/representation/ModuleDescriptor.h"
|
|
#include "compiler/representation/ModuleFunctionDescriptor.h"
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
{
|
|
CompiledScript::CompiledScript( CodeSection code,
|
|
DataSection data,
|
|
ExportedFunctions exported_functions,
|
|
std::vector<std::string> global_variable_names,
|
|
ModuleDescriptors module_descriptors,
|
|
std::unique_ptr<ProgramInfo> program_info,
|
|
SourceFileIdentifiers source_file_identifiers)
|
|
: code( std::move( code ) ),
|
|
data( std::move( data ) ),
|
|
exported_functions( std::move( exported_functions ) ),
|
|
global_variable_names( std::move( global_variable_names ) ),
|
|
module_descriptors( std::move( module_descriptors ) ),
|
|
program_info( std::move( program_info ) ),
|
|
source_file_identifiers( std::move( source_file_identifiers ) )
|
|
{
|
|
}
|
|
|
|
CompiledScript::~CompiledScript() = default;
|
|
|
|
} // namespace Pol::Bscript::Compiler
|