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

31 lines
693 B
C++

#ifndef POLSERVER_CONSTDECLARATION_H
#define POLSERVER_CONSTDECLARATION_H
#include "bscript/compiler/ast/Node.h"
namespace Pol::Bscript::Compiler
{
class NodeVisitor;
class Expression;
class SourceLocation;
class ConstDeclaration : public Node
{
public:
const std::string identifier;
ConstDeclaration( const SourceLocation&, std::string identifier, std::unique_ptr<Expression>,
bool ignore_overwrite_attempt = false );
Expression& expression();
void accept( NodeVisitor& ) override;
void describe_to( std::string& ) const override;
const bool ignore_overwrite_attempt;
};
} // namespace Pol::Bscript::Compiler
#endif // POLSERVER_CONSTDECLARATION_H