Home | History | Annotate | Download | only in hidl

Lines Matching defs:AST

17 #include "AST.h"
38 AST::AST(const Coordinator* coordinator, const std::string& path)
43 Scope* AST::getRootScope() {
48 void AST::addSyntaxError() {
52 size_t AST::syntaxErrors() const {
56 const std::string &AST::getFilename() const {
60 bool AST::setPackage(const char *package) {
73 FQName AST::package() const {
77 bool AST::isInterface() const {
81 bool AST::containsInterfaces() const {
85 bool AST::addImport(const char *import) {
107 AST* ast = mCoordinator->parse(subFQName, &mImportedASTs, Coordinator::Enforce::NONE);
108 if (ast == nullptr) {
112 mImportedTypes.erase(ast);
118 AST *importAST;
170 // can't find an appropriate AST for fqName.
174 void AST::addImportedAST(AST *ast) {
175 mImportedASTs.insert(ast);
178 bool AST::addTypeDef(const char* localName, Type* type, const Location& location,
186 bool AST::addScopedType(NamedType* type, std::string* errorMsg, Scope* scope) {
190 bool AST::addScopedTypeInternal(NamedType* type, std::string* errorMsg, Scope* scope) {
212 EnumValue* AST::lookupEnumValue(const FQName& fqName, std::string* errorMsg, Scope* scope) {
238 Type* AST::lookupType(const FQName& fqName, Scope* scope) {
270 Type* AST::lookupTypeLocally(const FQName& fqName, Scope* scope) {
291 status_t AST::lookupAutofilledType(const FQName &fqName, Type **returnedType) {
297 // Given this fully-qualified name, the type may be defined in this AST, or other files
323 Type *AST::lookupTypeFromImports(const FQName &fqName) {
358 AST *importedAST = pair.first;
455 Type *AST::findDefinedType(const FQName &fqName, FQName *matchingName) const {
469 void AST::getImportedPackages(std::set<FQName> *importSet) const {
482 void AST::getImportedPackagesHierarchy(std::set<FQName> *importSet) const {
485 for (const auto &ast : mImportedASTs) {
486 if (importSet->find(ast->package()) != importSet->end()) {
487 ast->getImportedPackagesHierarchy(&newSet);
493 void AST::getAllImportedNames(std::set<FQName> *allImportNames) const {
496 AST* ast = mCoordinator->parse(name, nullptr /* imported */, Coordinator::Enforce::NONE);
497 ast->getAllImportedNames(allImportNames);
501 bool AST::isJavaCompatible() const {
502 if (!AST::isInterface()) {
516 void AST::appendToExportedTypesVector(
521 bool AST::isIBase() const {
526 const Interface *AST::getInterface() const {
530 std::string AST::getBaseName() const {