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