polserver/pol-core/bscript/compiler/representation/MethodDescriptor.h
Kevin Eady 37a6179971 Add reading, writing of function table to ecl program (#697)
* 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'
2024-10-10 18:06:04 +02:00

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