Lines Matching refs:ast

226 status_t Coordinator::parseOptional(const FQName& fqName, AST** ast, std::set<AST*>* parsedASTs,  in parseOptional()  argument
232 *ast = (*it).second; in parseOptional()
234 if (*ast != nullptr && parsedASTs != nullptr) { in parseOptional()
235 parsedASTs->insert(*ast); in parseOptional()
238 if (*ast == nullptr) { in parseOptional()
256 *ast = new AST(this, &Hash::getHash(path)); in parseOptional()
261 (*ast)->addImplicitImport(fqName.getTypesForPackage()); in parseOptional()
268 delete *ast; in parseOptional()
269 *ast = nullptr; in parseOptional()
276 if (parseFile(*ast, std::move(file)) != OK || (*ast)->postParse() != OK) { in parseOptional()
277 delete *ast; in parseOptional()
278 *ast = nullptr; in parseOptional()
282 if ((*ast)->package().package() != fqName.package() || in parseOptional()
283 (*ast)->package().version() != fqName.version()) { in parseOptional()
291 if ((*ast)->isInterface()) { in parseOptional()
296 path.c_str(), (*ast)->getInterface()->definedName().c_str()); in parseOptional()
299 } else if ((*ast)->getInterface()->definedName() != fqName.name()) { in parseOptional()
316 } else if ((*ast)->definesInterfaces()) { in parseOptional()
327 delete *ast; in parseOptional()
328 *ast = nullptr; in parseOptional()
333 parsedASTs->insert(*ast); in parseOptional()
338 mCache[fqName] = *ast; in parseOptional()
344 delete *ast; in parseOptional()
345 *ast = nullptr; in parseOptional()
566 AST* ast = parse(fqName, nullptr /*imported*/, Coordinator::Enforce::NONE); in addUnreferencedTypes() local
567 if (!ast) { in addUnreferencedTypes()
573 ast->addDefinedTypes(&packageDefinedTypes); in addUnreferencedTypes()
574 ast->addReferencedTypes(&packageReferencedTypes); in addUnreferencedTypes()
575 ast->getAllImportedNamesGranular(&packageImportedTypes); in addUnreferencedTypes()
578 ast->addDefinedTypes(&typesDefinedTypes); in addUnreferencedTypes()
813 AST* ast = parse(fqName); in checkHash() local
814 if (ast == nullptr) return HashStatus::ERROR; in checkHash()
841 Hash::clearHash(ast->getFilename()); in checkHash()
853 std::string currentHash = ast->getFileHash()->hexString(); in checkHash()
869 AST* ast = parse(fqName); in getUnfrozenDependencies() local
870 if (ast == nullptr) return UNKNOWN_ERROR; in getUnfrozenDependencies()
873 ast->getImportedPackages(&imported); in getUnfrozenDependencies()