polserver/pol-core/bscript/compiler/ast/DictionaryEntry.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

29 lines
765 B
C++

#include "bscript/compiler/ast/DictionaryEntry.h"
#include "bscript/compiler/ast/Expression.h"
#include "bscript/compiler/ast/NodeVisitor.h"
namespace Pol::Bscript::Compiler
{
DictionaryEntry::DictionaryEntry( const SourceLocation& source_location,
std::unique_ptr<Expression> key,
std::unique_ptr<Expression> value )
: Node( source_location )
{
children.reserve( 2 );
children.push_back( std::move( key ) );
children.push_back( std::move( value ) );
}
void DictionaryEntry::accept( NodeVisitor& visitor )
{
visitor.visit_dictionary_entry( *this );
}
void DictionaryEntry::describe_to( std::string& w ) const
{
w += "dictionary-entry";
}
} // namespace Pol::Bscript::Compiler