polserver/pol-core/bscript/compiler/ast/ElementAccess.h
turleypol 0e675c516a
use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595)
* use new formatter for ERROR_PRINT, added ERROR_PRINTLN

* remove old log define

* fix comments
2024-01-12 06:51:44 +01:00

27 lines
647 B
C++

#ifndef POLSERVER_ELEMENTACCESS_H
#define POLSERVER_ELEMENTACCESS_H
#include "bscript/compiler/ast/Expression.h"
namespace Pol::Bscript::Compiler
{
class ElementIndexes;
class ElementAccess : public Expression
{
public:
ElementAccess( const SourceLocation&, std::unique_ptr<Expression> lhs,
std::unique_ptr<ElementIndexes> );
void accept( NodeVisitor& ) override;
void describe_to( std::string& ) const override;
ElementIndexes& indexes();
std::unique_ptr<Expression> take_entity();
std::unique_ptr<ElementIndexes> take_indexes();
};
} // namespace Pol::Bscript::Compiler
#endif // POLSERVER_ELEMENTACCESS_H