MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / PrintAstSub

Function PrintAstSub

src/Chain/libraries/glua/glua_statement.cpp:36–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35
36 void PrintAstSub(GluaDecompileContextP ctx, AstStatement* blockstmt, std::stringstream &buff, int indent) {
37 List* sub = blockstmt->sub;
38 ListItem* walk;
39 if (sub == NULL) {
40 return;
41 }
42 walk = sub->head;
43 while (walk) {
44 PrintAstStatement(ctx, lua_cast(AstStatement*, walk), buff, indent);
45 blockstmt->sub_print_count++;
46 walk = walk->next;
47 }
48 }
49
50 AstStatement* MakeStatement(StatementType type, std::string code) {
51 auto stmt = new AstStatement();

Callers 3

PrintBlockStatementFunction · 0.85
PrintIfStatementFunction · 0.85
PrintFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected