MCPcopy Create free account
hub / github.com/OGRECave/ogre / processNode

Method processNode

OgreMain/src/OgreScriptTranslator.cpp:527–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

addErrorMethod · 0.80
getMethod · 0.45
getTranslatorMethod · 0.45
translateMethod · 0.45

Tested by

no test coverage detected