mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* 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
15 lines
No EOL
505 B
C++
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
|