2026-07-25 23:01:18 +02:00
|
|
|
#include "bscript/compiler/codegen/AbstractSyntaxTreeStringGenerator.h"
|
2025-07-23 23:00:34 +02:00
|
|
|
|
|
|
|
|
#include "bscript/compiler/ast/Node.h"
|
|
|
|
|
#include "bscript/compiler/file/SourceFileIdentifier.h"
|
|
|
|
|
|
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
|
|
|
{
|
2026-01-15 22:31:14 +01:00
|
|
|
AbstractSyntaxTreeStringGenerator::AbstractSyntaxTreeStringGenerator() = default;
|
2025-07-23 23:00:34 +02:00
|
|
|
|
|
|
|
|
void AbstractSyntaxTreeStringGenerator::visit_children( Node& parent )
|
|
|
|
|
{
|
|
|
|
|
if ( parent.source_location.source_file_identifier->index == 0 )
|
|
|
|
|
_tree += parent.to_string_tree();
|
|
|
|
|
}
|
|
|
|
|
} // namespace Pol::Bscript::Compiler
|