| 525 | } |
| 526 | |
| 527 | void ScriptTranslator::processNode(ScriptCompiler *compiler, const AbstractNodePtr &node) |
| 528 | { |
| 529 | if(node->type != ANT_OBJECT) |
| 530 | return; |
| 531 | |
| 532 | // Abstract objects are completely skipped |
| 533 | if((static_cast<ObjectAbstractNode*>(node.get()))->abstract) |
| 534 | return; |
| 535 | |
| 536 | // Retrieve the translator to use |
| 537 | ScriptTranslator *translator = |
| 538 | ScriptCompilerManager::getSingleton().getTranslator(node); |
| 539 | |
| 540 | if(translator) |
| 541 | translator->translate(compiler, node); |
| 542 | else |
| 543 | compiler->addError(ScriptCompiler::CE_UNEXPECTEDTOKEN, node->file, node->line, |
| 544 | "token \"" + static_cast<ObjectAbstractNode*>(node.get())->cls + "\" is not recognized"); |
| 545 | } |
| 546 | //------------------------------------------------------------------------- |
| 547 | AbstractNodeList::const_iterator ScriptTranslator::getNodeAt(const AbstractNodeList &nodes, size_t index) |
| 548 | { |
nothing calls this directly
no test coverage detected