MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / print_tree

Method print_tree

modules/gdscript/gdscript_parser.cpp:6400–6415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6398}
6399
6400void GDScriptParser::TreePrinter::print_tree(const GDScriptParser &p_parser) {
6401 ClassNode *class_tree = p_parser.get_tree();
6402 ERR_FAIL_NULL_MSG(class_tree, "Parse the code before printing the parse tree.");
6403
6404 if (p_parser.is_tool()) {
6405 push_line("@tool");
6406 }
6407 if (!class_tree->icon_path.is_empty()) {
6408 push_text(R"(@icon (")");
6409 push_text(class_tree->icon_path);
6410 push_line("\")");
6411 }
6412 print_class(class_tree);
6413
6414 print_line(String(printed));
6415}
6416
6417#endif // DEBUG_ENABLED

Callers 1

test_parserFunction · 0.45

Calls 5

print_lineFunction · 0.85
StringClass · 0.50
get_treeMethod · 0.45
is_toolMethod · 0.45
is_emptyMethod · 0.45

Tested by 1

test_parserFunction · 0.36