mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* use new formatter for ERROR_PRINT, added ERROR_PRINTLN * remove old log define * fix comments
28 lines
541 B
C++
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
|