polserver/pol-core/bscript/compiler/ast/UninitializedFunctionDeclaration.cpp
turleypol 1463b76c7c
Includes are now all relative to pol-core basefolder (#906)
* 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
2026-07-25 23:01:18 +02:00

31 lines
1 KiB
C++

#include "bscript/compiler/ast/UninitializedFunctionDeclaration.h"
#include <utility>
#include "bscript/compiler/ast/FunctionParameterDeclaration.h"
#include "bscript/compiler/ast/FunctionParameterList.h"
#include "bscript/compiler/ast/NodeVisitor.h"
namespace Pol::Bscript::Compiler
{
UninitializedFunctionDeclaration::UninitializedFunctionDeclaration(
const SourceLocation& source_location, UserFunctionType type, std::string scope,
std::string name, std::unique_ptr<FunctionParameterList> parameter_list )
: Function( source_location, std::move( scope ), std::move( name ),
std::move( parameter_list ) ),
type( type )
{
}
void UninitializedFunctionDeclaration::accept( NodeVisitor& visitor )
{
visitor.visit_uninitialized_function_declaration( *this );
}
void UninitializedFunctionDeclaration::describe_to( std::string& w ) const
{
fmt::format_to( std::back_inserter( w ), "uninitialized-function-declaration({}::{})", scope,
name );
}
} // namespace Pol::Bscript::Compiler