mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* POLLOG* macros use the new formatting removed all old logging functions * removed old fmt lib from everything except StreamWriter removed unneeded functions * fixed review comments
25 lines
No EOL
597 B
C++
25 lines
No EOL
597 B
C++
#include "StringValue.h"
|
|
|
|
|
|
#include "bscript/compiler/ast/NodeVisitor.h"
|
|
#include "clib/strutil.h"
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
{
|
|
StringValue::StringValue( const SourceLocation& source_location, std::string value )
|
|
: Value( source_location ), value( std::move( value ) )
|
|
{
|
|
}
|
|
|
|
void StringValue::accept( NodeVisitor& visitor )
|
|
{
|
|
visitor.visit_string_value( *this );
|
|
}
|
|
|
|
void StringValue::describe_to( std::string& w ) const
|
|
{
|
|
fmt::format_to( std::back_inserter( w ), "string-value({})",
|
|
Clib::getencodedquotedstring( value ) );
|
|
}
|
|
|
|
} // namespace Pol::Bscript::Compiler
|