Lines Matching refs:ast
32 extern android::status_t parseFile(android::AST *ast);
72 AST *ast = (*it).second; in parse() local
74 if (ast != nullptr && parsedASTs != nullptr) { in parse()
75 parsedASTs->insert(ast); in parse()
78 return ast; in parse()
100 AST *ast = new AST(this, path); in parse() local
105 ast->addImportedAST(typesAST); in parse()
108 status_t err = parseFile(ast); in parse()
111 delete ast; in parse()
112 ast = nullptr; in parse()
117 if (ast->package().package() != fqName.package() in parse()
118 || ast->package().version() != fqName.version()) { in parse()
126 if (ast->isInterface()) { in parse()
132 ast->getInterface()->localName().c_str()); in parse()
135 } else if (ast->getInterface()->localName() != fqName.name()) { in parse()
152 } else if (ast->containsInterfaces()) { in parse()
163 delete ast; in parse()
164 ast = nullptr; in parse()
169 if (parsedASTs != nullptr) { parsedASTs->insert(ast); } in parse()
173 mCache[fqName] = ast; in parse()
179 delete ast; in parse()
180 ast = nullptr; in parse()
184 return ast; in parse()
547 AST *ast = parse(currentFQName); in enforceHashes() local
549 if (ast == nullptr) { in enforceHashes()
569 std::string currentHash = Hash::getHash(ast->getFilename()).hexString(); in enforceHashes()