mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* Add astbuilder/ SourceFileProcessor * Add ast/ ValueConsumer Co-authored-by: Fernando Rozenblit <rozenblit@gmail.com>
25 lines
546 B
C++
25 lines
546 B
C++
#include "ValueConsumer.h"
|
|
|
|
#include <format/format.h>
|
|
|
|
#include "compiler/ast/NodeVisitor.h"
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
{
|
|
ValueConsumer::ValueConsumer( const SourceLocation& source_location,
|
|
std::unique_ptr<Statement> child )
|
|
: Statement( 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
|