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

Function MakeStatement

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

Source from the content-addressed store, hash-verified

48 }
49
50 AstStatement* MakeStatement(StatementType type, std::string code) {
51 auto stmt = new AstStatement();
52 stmt->type = type;
53 stmt->code = code;
54 stmt->sub = nullptr;
55 stmt->sub_print_count = 0;
56 stmt->comment_print_count = 0;
57 return stmt;
58 }
59
60 AstStatement* MakeSimpleStatement(std::string code) {
61 AstStatement* stmt = MakeStatement(SIMPLE_STMT, code);

Callers 3

MakeSimpleStatementFunction · 0.85
MakeBlockStatementFunction · 0.85
ProcessCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected