コード例 #1
0
ファイル: ASTFactory.cpp プロジェクト: jariba/europa-pso
/** Create a new empty AST node; if the user did not specify
 *  an AST node type, then create a default one: CommonAST.
 */
RefAST ASTFactory::create()
{
	RefAST node = nodeFactories[0]->second();
	node->setType(Token::INVALID_TYPE);
	return node;
}
コード例 #2
0
ファイル: ASTFactory.cpp プロジェクト: dbenn/cgp
/** Create a new empty AST node; if the user did not specify
 *  an AST node type, then create a default one: CommonAST.
 */
RefAST ASTFactory::create()
{
    RefAST node = nodeFactory(); //new CommonASTNode();
    node->setType(Token::INVALID_TYPE);
    return node;
}