| 102 | } |
| 103 | |
| 104 | void VMFunctionBuilder::EndStatement() |
| 105 | { |
| 106 | // pop empty statement records. |
| 107 | while (LineNumbers.Size() > 0 && LineNumbers.Last().InstructionIndex == Code.Size()) LineNumbers.Pop(); |
| 108 | StatementStack.Pop(); |
| 109 | // Re-enter the previous statement. |
| 110 | if (StatementStack.Size() > 0) |
| 111 | { |
| 112 | FStatementInfo si = { (uint16_t)Code.Size(), (uint16_t)StatementStack.Last()->ScriptPosition.ScriptLine }; |
| 113 | LineNumbers.Push(si); |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | void VMFunctionBuilder::MakeFunction(VMScriptFunction *func) |
| 118 | { |
no test coverage detected