2020-09-06 14:03:02 -07:00
|
|
|
#include "ElementIndexes.h"
|
|
|
|
|
|
|
|
|
|
|
2021-02-25 16:53:22 +01:00
|
|
|
#include "bscript/compiler/ast/Expression.h"
|
|
|
|
|
#include "bscript/compiler/ast/NodeVisitor.h"
|
2020-09-06 14:03:02 -07:00
|
|
|
|
|
|
|
|
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 );
|
|
|
|
|
}
|
|
|
|
|
|
2024-01-12 06:51:44 +01:00
|
|
|
void ElementIndexes::describe_to( std::string& w ) const
|
2020-09-06 14:03:02 -07:00
|
|
|
{
|
2024-01-12 06:51:44 +01:00
|
|
|
w += "element-indexes";
|
2020-09-06 14:03:02 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace Pol::Bscript::Compiler
|