Home
last modified time | relevance | path

Searched refs:ast (Results 1 – 25 of 26) sorted by relevance

12

/drivers/hdf_core/framework/tools/hdi-gen/codegen/
Dcode_generator.cpp121 for (const auto &ast : allAst) { in Generate() local
122 if (sourceFile.find(ast.second->GetIdlFilePath()) != sourceFile.end()) { in Generate()
123 genCodeFunc(ast.second, outDir); in Generate()
127 for (const auto &ast : allAst) { in Generate() local
128 genCodeFunc(ast.second, outDir); in Generate()
159 void CodeGenerator::GenIpcCCode(const AutoPtr<AST> &ast, const std::string &outDir) in GenIpcCCode() argument
162 switch (ast->GetASTFileType()) { in GenIpcCCode()
164 cCodeEmitters_["types"]->OutPut(ast, outDir, mode); in GenIpcCCode()
168 cCodeEmitters_["interface"]->OutPut(ast, outDir, mode); in GenIpcCCode()
169 cCodeEmitters_["proxy"]->OutPut(ast, outDir, mode); in GenIpcCCode()
[all …]
Dcode_generator.h33 static void GenIpcCCode(const AutoPtr<AST> &ast, const std::string &outDir);
35 static void GenIpcCppCode(const AutoPtr<AST> &ast, const std::string &outDir);
37 static void GenIpcJavaCode(const AutoPtr<AST> &ast, const std::string &outDir);
39 static void GenPassthroughCCode(const AutoPtr<AST> &ast, const std::string &outDir);
41 static void GenPassthroughCppCode(const AutoPtr<AST> &ast, const std::string &outDir);
43 static void GenKernelCode(const AutoPtr<AST> &ast, const std::string &outDir);
45 static void GenLowCCode(const AutoPtr<AST> &ast, const std::string &outDir);
Dcode_emitter.cpp18 bool CodeEmitter::OutPut(const AutoPtr<AST> &ast, const std::string &targetDirectory, GenMode mode) in OutPut() argument
20 if (!Reset(ast, targetDirectory, mode)) { in OutPut()
28 bool CodeEmitter::Reset(const AutoPtr<AST> &ast, const std::string &targetDirectory, GenMode mode) in Reset() argument
30 if (ast == nullptr || targetDirectory.empty()) { in Reset()
37 ast_ = ast; in Reset()
Dcode_emitter.h75 bool OutPut(const AutoPtr<AST> &ast, const std::string &targetDirectory, GenMode mode);
78 bool Reset(const AutoPtr<AST> &ast, const std::string &targetDirectory, GenMode mode);
Dcpp_code_emitter.h23 bool OutPut(const AutoPtr<AST> &ast, const std::string &targetDirectory);
/drivers/hdf_core/framework/tools/hc-gen/src/
Dgenerator.h20 explicit Generator(const std::shared_ptr<Ast> &ast) : ast_(ast) {} in Generator() argument
Ddecompile.cpp301 auto ast = std::make_shared<Ast>(rootObject); in RebuildAst() local
302 ast->Dump(); in RebuildAst()
303 return ast; in RebuildAst()
316 auto ast = RebuildAst(); in DoDecompile() local
317 if (ast == nullptr) { in DoDecompile()
327 DecompileGen decompileGen(ast, outPutFileName); in DoDecompile()
Ddecompile_gen.h21 DecompileGen(std::shared_ptr<Ast> ast, std::string outPutFileName);
Dmacro_gen.h21 explicit MacroGen(std::shared_ptr<Ast> ast);
Dbytecode_gen.h31 explicit ByteCodeGen(std::shared_ptr<Ast> ast);
Ddecompile_gen.cpp16 DecompileGen::DecompileGen(std::shared_ptr<Ast> ast, std::string outPutFileName) in DecompileGen() argument
20 ast_(ast) in DecompileGen()
Dstartup_cfg_gen.h40 explicit StartupCfgGen(const std::shared_ptr<Ast> &ast);
Dbytecode_gen.cpp17 ByteCodeGen::ByteCodeGen(std::shared_ptr<Ast> ast) in ByteCodeGen() argument
18 : Generator(ast), in ByteCodeGen()
Dmacro_gen.cpp23 MacroGen::MacroGen(std::shared_ptr<Ast> ast) : Generator(ast) {} in MacroGen() argument
Dstartup_cfg_gen.cpp42 StartupCfgGen::StartupCfgGen(const std::shared_ptr<Ast> &ast) : Generator(ast) in StartupCfgGen() argument
Dtext_gen.h21 explicit TextGen(std::shared_ptr<Ast> ast);
Dtext_gen.cpp23 TextGen::TextGen(std::shared_ptr<Ast> ast) : Generator(ast) {} in TextGen() argument
/drivers/hdf_core/framework/tools/hdi-gen/parser/
Dparser.cpp1695 bool Parser::AddAst(const AutoPtr<AST> &ast) in AddAst() argument
1697 if (ast == nullptr) { in AddAst()
1702 allAsts_[ast->GetFullName()] = ast; in AddAst()
1841 for (const auto &ast : allAsts_) { in GetGenVersion() local
1842 if (sourceFile.find(ast.second->GetIdlFilePath()) != sourceFile.end()) { in GetGenVersion()
1844 genPackageName = ast.second->GetPackageName(); in GetGenVersion()
1845 version[0] = ast.second->GetMajorVer(); in GetGenVersion()
1846 version[1] = ast.second->GetMinorVer(); in GetGenVersion()
1849 … if (genPackageName != ast.second->GetPackageName() || version[0] != ast.second->GetMajorVer() || in GetGenVersion()
1850 version[1] != ast.second->GetMinorVer()) { in GetGenVersion()
[all …]
Dparser.h204 bool AddAst(const AutoPtr<AST> &ast);
/drivers/hdf_core/framework/tools/hdi-gen/
DMakefileLinux30 AST_SOURCE_DIR := $(PWD)/ast
32 AST_OBJS_DIR := $(BUILD_DIR)/ast
DMakefileWin30 AST_SOURCE_DIR:=$(PWD)\ast
32 AST_OBJS_DIR:=$(BUILD_DIR)\ast
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/
Dparser.js52 ast: oneAst, property
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/
Dhdf_liteos_scann.py14 import ast
335 str1 = ast.literal_eval(list1[-1].strip())[0]
Dhdf_get_handler.py13 from ast import literal_eval
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/
Dhdf_utils.py17 from ast import literal_eval

12