mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
25 lines
556 B
C++
25 lines
556 B
C++
#include "ValueConsumer.h"
|
|
|
|
#include <format/format.h>
|
|
|
|
#include "bscript/compiler/ast/NodeVisitor.h"
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
{
|
|
ValueConsumer::ValueConsumer( const SourceLocation& source_location,
|
|
std::unique_ptr<Expression> child )
|
|
: Expression( source_location, std::move( child ) )
|
|
{
|
|
}
|
|
|
|
void ValueConsumer::accept( NodeVisitor& visitor )
|
|
{
|
|
visitor.visit_value_consumer( *this );
|
|
}
|
|
|
|
void ValueConsumer::describe_to( fmt::Writer& w ) const
|
|
{
|
|
w << "value-consumer";
|
|
}
|
|
|
|
} // namespace Pol::Bscript::Compiler
|