mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* 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
26 lines
812 B
C++
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
|