polserver/pol-core/bscript/compiler/codegen/AbstractSyntaxTreeStringGenerator.cpp
turleypol 1463b76c7c
Includes are now all relative to pol-core basefolder (#906)
* all except pol

* pol and includes under defines

* something weird has happened

* remove own folder from include searchpath

* fixed remaining, adapted include style for external headers

* missing include
2026-07-25 23:01:18 +02:00

15 lines
No EOL
505 B
C++

#include "bscript/compiler/codegen/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