MCPcopy Create free account
hub / github.com/ZDoom/Raze / PrintNode

Function PrintNode

source/common/scripting/frontend/ast.cpp:1112–1125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1110}
1111
1112static void PrintNode(FLispString &out, const ZCC_TreeNode *node)
1113{
1114 static_assert(countof(TreeNodePrinter) == NUM_AST_NODE_TYPES, "All AST node types should have printers defined for them");
1115 if (node->NodeType >= 0 && node->NodeType < NUM_AST_NODE_TYPES)
1116 {
1117 TreeNodePrinter[node->NodeType](out, node);
1118 }
1119 else
1120 {
1121 out.Open("unknown-node-type");
1122 out.AddInt(node->NodeType);
1123 out.Close();
1124 }
1125}

Callers 1

PrintNodesFunction · 0.85

Calls 3

AddIntMethod · 0.80
OpenMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected