2026-07-25 23:01:18 +02:00
|
|
|
#include "bscript/compiler/representation/CompiledScript.h"
|
2020-08-09 00:31:18 -07:00
|
|
|
|
|
|
|
|
#include <utility>
|
|
|
|
|
|
2026-07-25 23:01:18 +02:00
|
|
|
#include "bscript/StoredToken.h"
|
2021-02-25 16:53:22 +01:00
|
|
|
#include "bscript/compiler/file/SourceFileIdentifier.h"
|
2024-08-19 19:57:31 +02:00
|
|
|
#include "bscript/compiler/representation/ClassDescriptor.h"
|
2021-02-25 16:53:22 +01:00
|
|
|
#include "bscript/compiler/representation/ExportedFunction.h"
|
2024-08-06 20:29:02 +02:00
|
|
|
#include "bscript/compiler/representation/FunctionReferenceDescriptor.h"
|
2021-02-25 16:53:22 +01:00
|
|
|
#include "bscript/compiler/representation/ModuleDescriptor.h"
|
|
|
|
|
#include "bscript/compiler/representation/ModuleFunctionDescriptor.h"
|
2020-08-09 00:31:18 -07:00
|
|
|
|
2020-08-10 03:20:29 -07:00
|
|
|
namespace Pol::Bscript::Compiler
|
2020-08-09 00:31:18 -07:00
|
|
|
{
|
2025-07-23 23:00:34 +02:00
|
|
|
CompiledScript::CompiledScript( CodeSection code, DataSection data, DebugStore debug,
|
|
|
|
|
ExportedFunctions exported_functions,
|
|
|
|
|
std::vector<std::string> global_variable_names,
|
|
|
|
|
ModuleDescriptors module_descriptors,
|
|
|
|
|
FunctionReferences function_references,
|
|
|
|
|
ClassDescriptors class_descriptors,
|
|
|
|
|
std::unique_ptr<ProgramInfo> program_info,
|
|
|
|
|
SourceFileIdentifiers source_file_identifiers, std::string tree )
|
2024-08-06 20:29:02 +02:00
|
|
|
: code( std::move( code ) ),
|
|
|
|
|
data( std::move( data ) ),
|
|
|
|
|
debug( std::move( debug ) ),
|
|
|
|
|
exported_functions( std::move( exported_functions ) ),
|
|
|
|
|
global_variable_names( std::move( global_variable_names ) ),
|
|
|
|
|
module_descriptors( std::move( module_descriptors ) ),
|
|
|
|
|
function_references( std::move( function_references ) ),
|
2024-08-19 19:57:31 +02:00
|
|
|
class_descriptors( std::move( class_descriptors ) ),
|
2024-08-06 20:29:02 +02:00
|
|
|
program_info( std::move( program_info ) ),
|
2025-07-23 23:00:34 +02:00
|
|
|
source_file_identifiers( std::move( source_file_identifiers ) ),
|
|
|
|
|
tree( std::move( tree ) )
|
2020-08-09 00:31:18 -07:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CompiledScript::~CompiledScript() = default;
|
|
|
|
|
|
2020-08-10 03:20:29 -07:00
|
|
|
} // namespace Pol::Bscript::Compiler
|