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
668 B
C++
25 lines
668 B
C++
#include "InterpolateString.h"
|
|
|
|
|
|
#include "clib/strutil.h"
|
|
#include "compiler/ast/NodeVisitor.h"
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
{
|
|
InterpolateString::InterpolateString( const SourceLocation& source_location,
|
|
std::vector<std::unique_ptr<Expression>> children )
|
|
: Expression( source_location, std::move( children ) )
|
|
{
|
|
}
|
|
|
|
void InterpolateString::accept( NodeVisitor& visitor )
|
|
{
|
|
visitor.visit_interpolate_string( *this );
|
|
}
|
|
|
|
void InterpolateString::describe_to( std::string& w ) const
|
|
{
|
|
fmt::format_to( std::back_inserter( w ), "interpolate-string ({} parts)", children.size() );
|
|
}
|
|
|
|
} // namespace Pol::Bscript::Compiler
|