| 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(); |
no outgoing calls
no test coverage detected