polserver/pol-core/bscript/compiler/ast/VariableAssignmentStatement.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

25 lines
644 B
C++

#ifndef POLSERVER_VARIABLEASSIGNMENTSTATEMENT_H
#define POLSERVER_VARIABLEASSIGNMENTSTATEMENT_H
#include "bscript/compiler/ast/Statement.h"
namespace Pol::Bscript::Compiler
{
class Identifier;
class VariableAssignmentStatement : public Statement
{
public:
VariableAssignmentStatement( const SourceLocation&, std::unique_ptr<Identifier> identifier,
std::unique_ptr<Node> rhs );
void accept( NodeVisitor& ) override;
void describe_to( std::string& ) const override;
Identifier& identifier();
Node& rhs();
};
} // namespace Pol::Bscript::Compiler
#endif // POLSERVER_VARIABLEASSIGNMENTSTATEMENT_H