Lines Matching refs:ast
221 status_t Coordinator::parseOptional(const FQName& fqName, AST** ast, std::set<AST*>* parsedASTs, in parseOptional() argument
227 *ast = (*it).second; in parseOptional()
229 if (*ast != nullptr && parsedASTs != nullptr) { in parseOptional()
230 parsedASTs->insert(*ast); in parseOptional()
233 if (*ast == nullptr) { in parseOptional()
263 *ast = new AST(this, &Hash::getHash(path)); in parseOptional()
268 (*ast)->addImportedAST(typesAST); in parseOptional()
275 delete *ast; in parseOptional()
276 *ast = nullptr; in parseOptional()
283 if (parseFile(*ast, std::move(file)) != OK || (*ast)->postParse() != OK) { in parseOptional()
284 delete *ast; in parseOptional()
285 *ast = nullptr; in parseOptional()
289 if ((*ast)->package().package() != fqName.package() || in parseOptional()
290 (*ast)->package().version() != fqName.version()) { in parseOptional()
298 if ((*ast)->isInterface()) { in parseOptional()
303 path.c_str(), (*ast)->getInterface()->localName().c_str()); in parseOptional()
306 } else if ((*ast)->getInterface()->localName() != fqName.name()) { in parseOptional()
323 } else if ((*ast)->definesInterfaces()) { in parseOptional()
334 delete *ast; in parseOptional()
335 *ast = nullptr; in parseOptional()
340 parsedASTs->insert(*ast); in parseOptional()
345 mCache[fqName] = *ast; in parseOptional()
351 delete *ast; in parseOptional()
352 *ast = nullptr; in parseOptional()
569 AST* ast = parse(fqName); in addUnreferencedTypes() local
570 if (!ast) { in addUnreferencedTypes()
576 ast->addDefinedTypes(&packageDefinedTypes); in addUnreferencedTypes()
577 ast->addReferencedTypes(&packageReferencedTypes); in addUnreferencedTypes()
578 ast->getAllImportedNamesGranular(&packageImportedTypes); in addUnreferencedTypes()
581 ast->addDefinedTypes(&typesDefinedTypes); in addUnreferencedTypes()
802 AST* ast = parse(fqName); in checkHash() local
803 if (ast == nullptr) return HashStatus::ERROR; in checkHash()
824 Hash::clearHash(ast->getFilename()); in checkHash()
829 std::string currentHash = ast->getFileHash()->hexString(); in checkHash()
845 AST* ast = parse(fqName); in getUnfrozenDependencies() local
846 if (ast == nullptr) return UNKNOWN_ERROR; in getUnfrozenDependencies()
849 ast->getImportedPackages(&imported); in getUnfrozenDependencies()