mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
25 lines
638 B
C++
25 lines
638 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( fmt::Writer& ) const override;
|
|
|
|
Identifier& identifier();
|
|
Node& rhs();
|
|
};
|
|
|
|
} // namespace Pol::Bscript::Compiler
|
|
|
|
#endif // POLSERVER_VARIABLEASSIGNMENTSTATEMENT_H
|