polserver/pol-core/bscript/compiler/codegen/AbstractSyntaxTreeStringGenerator.cpp
turleypol bc9064c338
Clang Tidy default constructor (#852)
* trigger clang tidy

* Automated clang-tidy change: modernize-use-equals-default

* compile test

---------

Co-authored-by: Clang Tidy <clang-tidy@users.noreply.github.com>
2026-01-15 22:31:14 +01:00

15 lines
No EOL
480 B
C++

#include "AbstractSyntaxTreeStringGenerator.h"
#include "bscript/compiler/ast/Node.h"
#include "bscript/compiler/file/SourceFileIdentifier.h"
namespace Pol::Bscript::Compiler
{
AbstractSyntaxTreeStringGenerator::AbstractSyntaxTreeStringGenerator() = default;
void AbstractSyntaxTreeStringGenerator::visit_children( Node& parent )
{
if ( parent.source_location.source_file_identifier->index == 0 )
_tree += parent.to_string_tree();
}
} // namespace Pol::Bscript::Compiler