| 13409 | |
| 13410 | |
| 13411 | ResultType Script::PreprocessLocalVars(FuncList &aFuncs) |
| 13412 | { |
| 13413 | for (int i = 0; i < aFuncs.mCount; ++i) |
| 13414 | { |
| 13415 | ASSERT(!aFuncs.mItem[i]->IsBuiltIn()); |
| 13416 | auto &func = *(UserFunc *)aFuncs.mItem[i]; |
| 13417 | if (!PreprocessLocalVars(func)) |
| 13418 | return FAIL; |
| 13419 | // Nested functions will be preparsed next, due to the fact that they immediately |
| 13420 | // follow the outer function in aFuncs. |
| 13421 | } |
| 13422 | return OK; |
| 13423 | } |
| 13424 | |
| 13425 | |
| 13426 |