mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* Make ClassDeclaration only track class methods * Keep methods, constructors in compiler workspace - Fix UserFunctionBuilder to force reference to methods, constructors - Fix Optimizer to include methods, constructors in referenced functions * WIP for ClassDeclarationRegistrar - Stub implementation of ClassDeclaration and its Registration - Create "function table entry" via debug statements * Use function links in methods * Finish up ClassDescriptor - Introduce MethodDescriptor for encapsulation - ClassDeclarationRegistrar can register and take descriptors * Handle read and write class table in eprog * Pass Report to code generator for debug statements * Fix implementation - It _is_ possible for the constructor to be empty, ie. static classes * Update DebugStoreSerializer Print class table to dbg txt file * Add missing method_names insertion * Address GitHub CI Annotations - unused variable 'uf' - '=': conversion from 'size_t' to 'unsigned int'
14 lines
320 B
C++
14 lines
320 B
C++
#pragma once
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
{
|
|
class MethodDescriptor
|
|
{
|
|
public:
|
|
MethodDescriptor( unsigned name_offset, unsigned address, unsigned function_reference_index);
|
|
|
|
const unsigned name_offset;
|
|
const unsigned address;
|
|
const unsigned function_reference_index;
|
|
};
|
|
} // namespace Pol::Bscript::Compiler
|