polserver/pol-core/bscript/compiler/codegen/ClassDeclarationRegistrar.cpp
turleypol 1463b76c7c
Includes are now all relative to pol-core basefolder (#906)
* all except pol

* pol and includes under defines

* something weird has happened

* remove own folder from include searchpath

* fixed remaining, adapted include style for external headers

* missing include
2026-07-25 23:01:18 +02:00

26 lines
812 B
C++

#include "bscript/compiler/codegen/ClassDeclarationRegistrar.h"
#include "bscript/compiler/representation/ClassDescriptor.h"
namespace Pol::Bscript::Compiler
{
class MethodDescriptor;
ClassDeclarationRegistrar::ClassDeclarationRegistrar() = default;
void ClassDeclarationRegistrar::register_class(
unsigned class_name_offset, unsigned constructor_function_reference_index,
const std::vector<ConstructorDescriptor>& constructors,
const std::vector<MethodDescriptor>& method_descriptors )
{
descriptors.emplace_back( class_name_offset, constructor_function_reference_index, constructors,
method_descriptors );
}
std::vector<ClassDescriptor> ClassDeclarationRegistrar::take_descriptors()
{
return std::move( descriptors );
}
} // namespace Pol::Bscript::Compiler