mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* POLLOG* macros use the new formatting removed all old logging functions * removed old fmt lib from everything except StreamWriter removed unneeded functions * fixed review comments
28 lines
653 B
C++
28 lines
653 B
C++
#include "StructInitializer.h"
|
|
|
|
|
|
#include <utility>
|
|
|
|
#include "bscript/compiler/ast/NodeVisitor.h"
|
|
#include "bscript/compiler/ast/StructMemberInitializer.h"
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
{
|
|
StructInitializer::StructInitializer(
|
|
const SourceLocation& source_location,
|
|
std::vector<std::unique_ptr<StructMemberInitializer>> initializers )
|
|
: Expression( source_location, std::move( initializers ) )
|
|
{
|
|
}
|
|
|
|
void StructInitializer::accept( NodeVisitor& visitor )
|
|
{
|
|
visitor.visit_struct_initializer( *this );
|
|
}
|
|
|
|
void StructInitializer::describe_to( std::string& w ) const
|
|
{
|
|
w += "struct-initializer";
|
|
}
|
|
|
|
} // namespace Pol::Bscript::Compiler
|