| 552 | } |
| 553 | |
| 554 | AbstractNodeListPtr ScriptCompiler::loadImportPath( const Ogre::String &name ) |
| 555 | { |
| 556 | AbstractNodeListPtr retval; |
| 557 | ConcreteNodeListPtr nodes; |
| 558 | |
| 559 | if( mListener ) |
| 560 | nodes = mListener->importFile( this, name ); |
| 561 | |
| 562 | if( !nodes && ResourceGroupManager::getSingletonPtr() ) |
| 563 | { |
| 564 | DataStreamPtr stream = ResourceGroupManager::getSingleton().openResource( name, mGroup ); |
| 565 | if( stream ) |
| 566 | { |
| 567 | ScriptLexer lexer; |
| 568 | ScriptParser parser; |
| 569 | nodes = parser.parse( lexer.tokenize( stream->getAsString() ), name ); |
| 570 | } |
| 571 | } |
| 572 | |
| 573 | if( nodes ) |
| 574 | retval = convertToAST( nodes ); |
| 575 | |
| 576 | return retval; |
| 577 | } |
| 578 | |
| 579 | AbstractNodeListPtr ScriptCompiler::locateTarget( AbstractNodeList *nodes, |
| 580 | const Ogre::String &target ) |
nothing calls this directly
no test coverage detected