throw new IOException( resourcePath
+ " is not found" );
}
if ( file instanceof IAs3File )
{
rootNode = NodeFactory.createPackage( parser.buildAst( file.getFilePath() ) );
}
else
{
rootNode = NodeFactory.createPackage( parser.buildAst( file.getFilePath(),
( ( IMxmlFile ) file ).getScriptBlock() ) );