polserver/pol-core/bscript/compiler/ast/GeneratedFunction.h
Kevin Eady 82cf03ba2a Generate constructors for child classes (#703)
* 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
2024-10-10 18:06:04 +02:00

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