Lines Matching defs:ast
20 #include "ast/ast_array_type.h"
21 #include "ast/ast_enum_type.h"
22 #include "ast/ast_map_type.h"
23 #include "ast/ast_parameter.h"
24 #include "ast/ast_sequenceable_type.h"
25 #include "ast/ast_smq_type.h"
26 #include "ast/ast_struct_type.h"
27 #include "ast/ast_union_type.h"
1905 bool Parser::AddAst(const AutoPtr<AST> &ast)
1907 if (ast == nullptr) {
1908 LogError(__func__, __LINE__, std::string("ast is nullptr."));
1912 allAsts_[ast->GetFullName()] = ast;
2032 for (const auto &ast : allAsts_) {
2033 if (sourceFile.find(ast.second->GetIdlFilePath()) != sourceFile.end()) {
2035 genPackageName = ast.second->GetPackageName();
2036 version[0] = ast.second->GetMajorVer();
2037 version[1] = ast.second->GetMinorVer();
2040 if (genPackageName != ast.second->GetPackageName() || version[0] != ast.second->GetMajorVer() ||
2041 version[1] != ast.second->GetMinorVer()) {
2043 StringHelper::Format("merge ast failed, source files must have same package and version"));
2054 for (const auto &ast : allAsts_) {
2055 if ((sourceFile.find(ast.second->GetIdlFilePath()) != sourceFile.end()) &&
2056 (ast.second->GetInterfaceDef() != nullptr)) {
2057 ns = ast.second->GetInterfaceDef()->GetNamespace();
2066 AutoPtr<AST> ast = astPair.second;
2067 mergeMap[ast->GetName()].emplace(ast);
2075 for (const auto &ast : setPair.second) {
2076 MergeAst(targetAst, ast);