-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathmodulevar.h
More file actions
26 lines (15 loc) · 1.39 KB
/
modulevar.h
File metadata and controls
26 lines (15 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef DECOMPILER_MODULEVAR
#define DECOMPILER_MODULEVAR
#include "base.h"
using namespace panda;
std::string GetStringByOffset(std::unique_ptr<const panda_file::File>& file_, uint32_t offset);
bool IsValidOffset(std::unique_ptr<const panda_file::File>& file_, uint32_t offset);
void AddImportAst(panda::es2panda::parser::Program *parser_program, std::string imported_name, std::string local_name, std::string module_name);
void AddExportAstAll(panda::es2panda::parser::Program *parser_program, std::string module_name);
void AddExportAstNamed(panda::es2panda::parser::Program *parser_program, std::string import_name, std::string export_name, std::string module_name);
void AddExportAst(panda::es2panda::parser::Program *parser_program, std::string local_name, std::string export_name);
void GetModuleLiteralArray(std::unique_ptr<const panda_file::File>& file_, panda_file::File::EntityId &module_id, panda::disasm::Disassembler& disasm,
panda::es2panda::parser::Program *parser_program, std::map<size_t, std::vector<std::string>>& index2namespaces, std::vector<std::string>& localnamespaces);
void ParseModuleVars(std::unique_ptr<const panda_file::File>& file_, pandasm::Program *prog, panda::disasm::Disassembler& disasm,
panda::es2panda::parser::Program *parser_program, std::map<size_t, std::vector<std::string>>& index2namespaces, std::vector<std::string>& localnamespaces);
#endif