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
23 lines
582 B
C++
23 lines
582 B
C++
#ifndef POLSERVER_FORMATEXPRESSION_H
|
|
#define POLSERVER_FORMATEXPRESSION_H
|
|
|
|
#include "compiler/ast/Expression.h"
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
{
|
|
class NodeVisitor;
|
|
class StringValue;
|
|
|
|
class FormatExpression : public Expression
|
|
{
|
|
public:
|
|
FormatExpression( const SourceLocation& source_location, std::unique_ptr<Expression> expression,
|
|
std::unique_ptr<StringValue> format );
|
|
|
|
void accept( NodeVisitor& visitor ) override;
|
|
void describe_to( std::string& ) const override;
|
|
};
|
|
|
|
} // namespace Pol::Bscript::Compiler
|
|
|
|
#endif // POLSERVER_FORMATEXPRESSION_H
|