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

28 lines
541 B
C++

#ifndef POLSERVER_IDENTIFIER_H
#define POLSERVER_IDENTIFIER_H
#include "bscript/compiler/ast/Expression.h"
namespace Pol::Bscript::Compiler
{
class NodeVisitor;
class FunctionLink;
class Variable;
class Identifier : public Expression
{
public:
Identifier( const SourceLocation&, std::string name );
void accept( NodeVisitor& ) override;
void describe_to( std::string& ) const override;
const std::string name;
std::shared_ptr<Variable> variable;
};
} // namespace Pol::Bscript::Compiler
#endif // POLSERVER_IDENTIFIER_H