mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* Make constructor_link nullable; WIP generated function builder changes * saving work * saving work, need to resolve double call * hopefully finish up super inherited constructors * Error if no base class has ctor * Fix AddressSanitizer error...? * Revert unnecessary edit * Remove duplicate code * Update pol-core/bscript/compiler/astbuilder/GeneratedFunctionBuilder.cpp
20 lines
519 B
C++
20 lines
519 B
C++
#pragma once
|
|
|
|
#include "bscript/compiler/ast/UserFunction.h"
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
{
|
|
class ClassDeclaration;
|
|
|
|
class GeneratedFunction : public UserFunction
|
|
{
|
|
public:
|
|
GeneratedFunction( const SourceLocation&, ClassDeclaration*, UserFunctionType,
|
|
const std::string& name );
|
|
|
|
// Do not override accept, so that the UserFunction accept is used.
|
|
void describe_to( std::string& ) const override;
|
|
|
|
ClassDeclaration* class_declaration() const;
|
|
};
|
|
} // namespace Pol::Bscript::Compiler
|