Home
last modified time | relevance | path

Searched refs:AST (Results 1 – 25 of 38) sorted by relevance

12

/system/tools/hidl/
DAST.cpp36 AST::AST(Coordinator *coordinator, const std::string &path) in AST() function in android::AST
44 AST::~AST() { in ~AST()
54 void AST::addSyntaxError() { in addSyntaxError()
58 size_t AST::syntaxErrors() const { in syntaxErrors()
62 void *AST::scanner() { in scanner()
66 void AST::setScanner(void *scanner) { in setScanner()
70 const std::string &AST::getFilename() const { in getFilename()
74 bool AST::setPackage(const char *package) { in setPackage()
87 FQName AST::package() const { in package()
91 bool AST::isInterface(std::string *ifaceName) const { in isInterface()
[all …]
DCoordinator.h31 struct AST;
48 AST *parse(const FQName &fqName, std::set<AST *> *parsedASTs = nullptr,
111 std::map<FQName, AST *> mCache;
DgenerateCppImpl.cpp35 status_t AST::generateCppImpl(const std::string &outputPath) const { in generateCppImpl()
45 void AST::generateFetchSymbol(Formatter &out, const std::string& ifaceName) const { in generateFetchSymbol()
49 status_t AST::generateStubImplMethod(Formatter &out, in generateStubImplMethod()
82 status_t AST::generateStubImplHeader(const std::string &outputPath) const { in generateStubImplHeader()
84 if (!AST::isInterface(&ifaceName)) { in generateStubImplHeader()
202 status_t AST::generateStubImplSource(const std::string &outputPath) const { in generateStubImplSource()
204 if (!AST::isInterface(&ifaceName)) { in generateStubImplSource()
DgenerateVts.cpp32 status_t AST::emitVtsTypeDeclarations(Formatter &out) const { in emitVtsTypeDeclarations()
34 if (AST::isInterface(&ifaceName)) { in emitVtsTypeDeclarations()
59 status_t AST::generateVts(const std::string &outputPath) const { in generateVts()
68 if (!AST::isInterface(&ifaceName)) { in generateVts()
DgenerateCpp.cpp36 status_t AST::generateCpp(const std::string &outputPath) const { in generateCpp()
46 status_t AST::generateCppHeaders(const std::string &outputPath) const { in generateCppHeaders()
68 void AST::getPackageComponents( in getPackageComponents()
73 void AST::getPackageAndVersionComponents( in getPackageAndVersionComponents()
78 std::string AST::makeHeaderGuard(const std::string &baseName, in makeHeaderGuard()
95 void AST::generateCppPackageInclude( in generateCppPackageInclude()
113 void AST::enterLeaveNamespace(Formatter &out, bool enter) const { in enterLeaveNamespace()
394 status_t AST::generateInterfaceHeader(const std::string &outputPath) const { in generateInterfaceHeader()
402 if (!AST::isInterface(&ifaceName)) { in generateInterfaceHeader()
574 status_t AST::generateHwBinderHeader(const std::string &outputPath) const { in generateHwBinderHeader()
[all …]
DAST.h42 struct AST { struct
43 AST(Coordinator *coordinator, const std::string &path);
44 ~AST();
78 void addImportedAST(AST *ast);
138 std::set<AST *> mImportedASTs; argument
144 std::map<AST *, std::set<Type *>> mImportedTypes; argument
282 DISALLOW_COPY_AND_ASSIGN(AST);
DCoordinator.cpp32 extern android::status_t parseFile(android::AST *ast);
57 AST *Coordinator::parse(const FQName &fqName, std::set<AST *> *parsedASTs, bool enforce) { in parse()
62 AST *ast = (*it).second; in parse()
74 AST *typesAST = nullptr; in parse()
90 AST *ast = new AST(this, path); in parse()
446 AST *currentAST = parse(currentFQName); in enforceMinorVersionUprevs()
511 AST *ast = parse(currentFQName); in enforceHashes()
Dmain.cpp68 AST *ast; in generateSourcesForFile()
229 AST *ast = coordinator->parse(fqName); in generateMakefileSectionForType()
285 AST *typesAST) { in generateMakefileSection()
350 AST *ast = coordinator->parse(fqName); in isPackageJavaCompatible()
389 const std::vector<FQName> &packageInterfaces, AST *typesAST) { in packageNeedsJavaCode()
472 AST *typesAST = nullptr; in generateMakefileForPackage()
476 AST *ast = coordinator->parse(fqName); in generateMakefileForPackage()
764 AST *typesAST = nullptr; in generateAndroidBpForPackage()
767 AST *ast = coordinator->parse(fqName); in generateAndroidBpForPackage()
923 AST *ast = coordinator->parse(fqName); in generateAndroidBpImplForPackage()
[all …]
DgenerateJava.cpp29 void AST::emitJavaReaderWriter( in emitJavaReaderWriter()
48 status_t AST::generateJavaTypes( in generateJavaTypes()
98 status_t AST::generateJava( in generateJava()
112 if (!AST::isInterface(&ifaceName)) { in generateJava()
700 status_t AST::emitJavaTypeDeclarations(Formatter &out) const { in emitJavaTypeDeclarations()
/system/tools/hidl/c2hal/
DAST.cpp37 AST::AST(const std::string &path, in AST() function in android::AST
48 AST::~AST() { in ~AST()
73 void *AST::scanner() { in scanner()
77 void AST::setScanner(void *scanner) { in setScanner()
81 bool AST::isOpenGl() const { in isOpenGl()
85 const std::string& AST::getFilename() const { in getFilename()
89 void AST::setDeclarations(std::vector<Declaration *> *declarations) { in setDeclarations()
100 void AST::setIncludes(std::vector<Include *> *includes) { in setIncludes()
104 Expression *AST::getExpression() const { in getExpression()
107 void AST::setExpression(Expression *expression) { in setExpression()
[all …]
DAST.h37 struct AST { struct
38 AST(const std::string &path,
42 ~AST();
93 DISALLOW_COPY_AND_ASSIGN(AST); argument
DExpression.cpp91 virtual Type getType(const AST &ast) { in getType()
109 virtual Type getType(const AST &ast) { in getType()
143 virtual Type getType(const AST &ast) { in getType()
166 virtual Type getType(const AST &ast) { in getType()
191 virtual Type getType(const AST &ast) { in getType()
214 virtual Type getType(const AST &) { in getType()
241 virtual Type getType(const AST &) { in getType()
DDeclaration.h28 struct AST;
56 virtual void processContents(AST &ast) = 0;
DDefine.cpp21 extern android::status_t parseExpression(android::AST *ast, std::string str);
47 void Define::processContents(AST &ast) { in processContents()
DExpression.h27 struct AST;
77 virtual Type getType(const AST &scope) = 0;
DInclude.cpp44 void Include::processContents(AST &) { in processContents() argument
DTypeDef.cpp37 void TypeDef::processContents(AST &ast) { in processContents()
DInclude.h37 void processContents(AST &ast) override;
DTypeDef.h36 void processContents(AST &ast) override;
DNote.h41 void processContents(AST &ast) override;
DEnumVarDeclaration.h41 void processContents(AST &ast) override;
DVarDeclaration.h38 void processContents(AST &ast) override;
DEnumVarDeclaration.cpp53 void EnumVarDeclaration::processContents(AST &) { in processContents() argument
DNote.cpp52 void Note::processContents(AST &ast) { in processContents()
DVarDeclaration.cpp53 void VarDeclaration::processContents(AST &) { in processContents() argument

12