/arkcompiler/ets_frontend/ets2panda/test/unit/public/ |
H A D | ast_builder_test.cpp | 61 using ark::es2panda::compiler::ast_verifier::InvariantNameSet; 62 using ark::es2panda::ir::AwaitExpressionBuilder; 63 using ark::es2panda::ir::BigIntLiteralBuilder; 64 using ark::es2panda::ir::BinaryExpressionBuilder; 65 using ark::es2panda::ir::BlockExpressionBuilder; 66 using ark::es2panda::ir::BlockStatementBuilder; 67 using ark::es2panda::ir::BooleanLiteralBuilder; 68 using ark::es2panda::ir::BreakStatementBuilder; 69 using ark::es2panda::ir::CallExpressionBuilder; 70 using ark::es2panda [all...] |
H A D | ast_verifier_check_abstract_call_test.cpp | 24 using ark::es2panda::checker::SignatureFlags; 25 using ark::es2panda::compiler::ast_verifier::ASTVerifier; 26 using ark::es2panda::compiler::ast_verifier::InvariantNameSet; 27 using ark::es2panda::ir::AstNode; 28 using ark::es2panda::ir::Identifier; 29 using ark::es2panda::ir::MemberExpression; 30 using ark::es2panda::ir::MemberExpressionKind; 31 using ark::es2panda::ir::SuperExpression; 37 ark::es2panda::checker::ETSChecker checker; in TEST_F() 60 ast->IterateRecursively([&checker, this](ark::es2panda in TEST_F() [all...] |
H A D | ast_verifier_short_test.cpp | 28 using ark::es2panda::CompilerOptions; 29 using ark::es2panda::ScriptExtension; 30 using ark::es2panda::checker::ETSChecker; 31 using ark::es2panda::compiler::ast_verifier::ASTVerifier; 32 using ark::es2panda::compiler::ast_verifier::InvariantNameSet; 33 using ark::es2panda::ir::BinaryExpression; 34 using ark::es2panda::ir::BooleanLiteral; 35 using ark::es2panda::ir::Expression; 36 using ark::es2panda::ir::Identifier; 37 using ark::es2panda [all...] |
H A D | ast_verifier_protected_access_correct_test.cpp | 19 using ark::es2panda::compiler::ast_verifier::ASTVerifier; 20 using ark::es2panda::compiler::ast_verifier::InvariantNameSet; 21 using ark::es2panda::ir::ETSScript; 48 ->AddModifier(ark::es2panda::ir::ModifierFlags::PROTECTED); in TEST_F()
|
H A D | ast_verifier_getter_setter_neg_test.cpp | 22 using ark::es2panda::checker::ETSChecker; 23 using ark::es2panda::compiler::ast_verifier::ASTVerifier; 24 using ark::es2panda::compiler::ast_verifier::InvariantNameSet; 25 using ark::es2panda::ir::AstNode; 26 using ark::es2panda::ir::ETSParameterExpression; 27 using ark::es2panda::ir::Identifier; 28 using ark::es2panda::ir::MethodDefinitionKind; 57 ast->IterateRecursively([&checker](ark::es2panda::ir::AstNode *child) { in TEST_F() 104 ast->IterateRecursively([](ark::es2panda::ir::AstNode *child) { in TEST_F() 151 ast->IterateRecursively([&checker](ark::es2panda in TEST_F() [all...] |
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
H A D | compileQueue.h | 30 namespace panda::es2panda::binder { 32 } // namespace panda::es2panda::binder 34 namespace panda::es2panda::compiler { 77 explicit CompileFileJob(es2panda::SourceFile *src, es2panda::CompilerOptions *options, in CompileFileJob() 78 std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo, in CompileFileJob() 96 es2panda::SourceFile *src_; 97 es2panda::CompilerOptions *options_; 98 std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo_; 107 const es2panda in CompileAbcClassJob() [all...] |
H A D | compilerImpl.h | 19 #include <es2panda.h> 31 namespace panda::es2panda::parser { 33 } // namespace panda::es2panda::parser 35 namespace panda::es2panda::compiler { 45 panda::pandasm::Program *Compile(parser::Program *program, const es2panda::CompilerOptions &options, 59 } // namespace panda::es2panda::compiler
|
/arkcompiler/ets_frontend/ets2panda/util/ |
H A D | options.h | 20 #include "es2panda.h" 35 namespace ark::es2panda::util { 74 es2panda::ScriptExtension Extension() const in Extension() 79 const es2panda::CompilerOptions &CompilerOptions() const in CompilerOptions() 84 void SetCompilerOptions(const es2panda::CompilerOptions &options) in SetCompilerOptions() 150 const ark::PandArg<std::string> &arktsConfig, const es2panda::CompilationMode &compMode) in DetermineExtension() 162 extension_ = es2panda::ScriptExtension::JS; in DetermineExtension() 165 extension_ = es2panda::ScriptExtension::INVALID; in DetermineExtension() 169 extension_ = es2panda::ScriptExtension::TS; in DetermineExtension() 171 extension_ = es2panda in DetermineExtension() [all...] |
/arkcompiler/ets_frontend/es2panda/aot/ |
H A D | main.cpp | 26 #include <es2panda.h> 36 namespace panda::es2panda::aot { 59 const std::unique_ptr<panda::es2panda::aot::Options> &options) in GenerateBase64Output() 120 static bool GenerateProgramsByWorkers(const std::map<std::string, panda::es2panda::util::ProgramCache*> &programsInfo, in GenerateProgramsByWorkers() 121 const std::unique_ptr<panda::es2panda::aot::Options> &options, std::map<std::string, size_t> *statp) in GenerateProgramsByWorkers() 123 auto queue = new panda::es2panda::aot::EmitFileQueue(options, statp, programsInfo); in GenerateProgramsByWorkers() 141 static void DumpProgramInfos(const std::map<std::string, panda::es2panda::util::ProgramCache*> &programsInfo, in DumpProgramInfos() 142 const std::unique_ptr<panda::es2panda::aot::Options> &options) in DumpProgramInfos() 144 const es2panda::CompilerOptions &compilerOptions = options->CompilerOptions(); in DumpProgramInfos() 155 es2panda in DumpProgramInfos() [all...] |
H A D | options.h | 19 #include <es2panda.h> 34 namespace panda::es2panda::aot { 65 const es2panda::CompilerOptions &CompilerOptions() const in CompilerOptions() 70 es2panda::CompilerOptions &CompilerOptions() in CompilerOptions() 75 es2panda::parser::ScriptKind ScriptKind() const in ScriptKind() 155 es2panda::CompilerOptions compilerOptions_ {}; 162 es2panda::parser::ScriptKind scriptKind_ {es2panda::parser::ScriptKind::SCRIPT}; 177 std::vector<es2panda::SourceFile> sourceFiles_; 182 } // namespace panda::es2panda [all...] |
H A D | emitFiles.h | 25 namespace panda::es2panda::aot { 48 const std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo, in EmitMergedAbcJob() 60 const std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo_; 67 explicit EmitCacheJob(const std::string &outputProtoName, panda::es2panda::util::ProgramCache *progCache) in EmitCacheJob() 76 panda::es2panda::util::ProgramCache *progCache_; 81 explicit EmitFileQueue(const std::unique_ptr<panda::es2panda::aot::Options> &options, in EmitFileQueue() 83 const std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo) in EmitFileQueue() 97 const std::unique_ptr<panda::es2panda::aot::Options> &options_; 99 const std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo_; 102 } // namespace panda::es2panda [all...] |
H A D | resolveDepsRelation.h | 25 #include <es2panda.h> 28 namespace panda::es2panda::aot { 32 explicit DepsRelationResolver(const std::map<std::string, panda::es2panda::util::ProgramCache *> &progsInfo, in DepsRelationResolver() 33 const std::unique_ptr<panda::es2panda::aot::Options> &options, in DepsRelationResolver() 53 const std::map<std::string, panda::es2panda::util::ProgramCache *> &progsInfo_; 60 } // namespace panda::es2panda::aot
|
/arkcompiler/ets_frontend/es2panda/util/ |
H A D | concurrent.h | 21 namespace panda::es2panda::compiler { 23 } // namespace panda::es2panda::compiler 25 namespace panda::es2panda::ir { 29 } // namespace panda::es2panda::ir 31 namespace panda::es2panda::binder { 33 } // namespace panda::es2panda::binder 35 namespace panda::es2panda::lexer { 37 } // namespace panda::es2panda::lexer 39 namespace panda::es2panda::parser { 43 namespace panda::es2panda [all...] |
H A D | moduleHelpers.h | 20 #include <es2panda.h> 24 namespace panda::es2panda::util { 27 static void CompileNpmModuleEntryList(const std::string &entriesInfo, panda::es2panda::CompilerOptions &options, 28 std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo, panda::ArenaAllocator *allocator); 30 } // panda::es2panda::util
|
/arkcompiler/ets_frontend/ets2panda/evaluate/debugInfoDeserialization/ |
H A D | classBuilder.h | 27 namespace ark::es2panda::parser { 29 } // namespace ark::es2panda::parser 31 namespace ark::es2panda::checker { 33 } // namespace ark::es2panda::checker 35 namespace ark::es2panda::ir { 38 } // namespace ark::es2panda::ir 40 namespace ark::es2panda::ir { 43 } // namespace ark::es2panda::ir 45 namespace ark::es2panda::evaluate { 74 } // namespace ark::es2panda [all...] |
/arkcompiler/ets_frontend/merge_abc/src/ |
H A D | protobufSnapshotGenerator.cpp | 28 std::fstream output = panda::es2panda::util::Helpers::FileStream<std::fstream>( in GenerateSnapshot() 42 std::fstream input = panda::es2panda::util::Helpers::FileStream<std::fstream>( in GenerateProgram() 57 panda::es2panda::util::ProgramCache *ProtobufSnapshotGenerator::GetCacheContext(const std::string &cacheFilePath, in GetCacheContext() 60 std::fstream input = panda::es2panda::util::Helpers::FileStream<std::fstream>( in GetCacheContext() 77 auto *programCache = allocator->New<panda::es2panda::util::ProgramCache>(hashCode, std::move(*program)); in GetCacheContext() 82 void ProtobufSnapshotGenerator::UpdateCacheFile(const panda::es2panda::util::ProgramCache *programCache, in UpdateCacheFile() 90 std::fstream output = panda::es2panda::util::Helpers::FileStream<std::fstream>( in UpdateCacheFile()
|
/arkcompiler/ets_frontend/ets2panda/declgen_ets2ts/ |
H A D | main.cpp | 20 namespace ark::es2panda::declgen_ets2ts { 29 auto *cfgImpl = reinterpret_cast<ark::es2panda::public_lib::ConfigImpl *>(cfg); in Run() 34 auto *ctxImpl = reinterpret_cast<ark::es2panda::public_lib::Context *>(ctx); in Run() 49 } // namespace ark::es2panda::declgen_ets2ts 53 return ark::es2panda::declgen_ets2ts::Run(argc, argv); in main()
|
/arkcompiler/ets_frontend/ets2panda/evaluate/ |
H A D | irCheckHelper.h | 22 namespace ark::es2panda::checker { 24 } // namespace ark::es2panda::checker 26 namespace ark::es2panda::ir { 28 } // namespace ark::es2panda::ir 30 namespace ark::es2panda::parser { 32 } // namespace ark::es2panda::parser 34 namespace ark::es2panda::varbinder { 37 } // namespace ark::es2panda::varbinder 39 namespace ark::es2panda::evaluate { 104 } // namespace ark::es2panda [all...] |
/arkcompiler/ets_frontend/ets2panda/parser/ |
H A D | parserFlags.h | 22 namespace ark::es2panda::parser { 82 } // namespace ark::es2panda::parser 87 struct IsAllowedType<ark::es2panda::parser::LexicalScopeType> : std::true_type { 91 struct IsAllowedType<ark::es2panda::parser::VariableParsingFlags> : std::true_type { 95 struct IsAllowedType<ark::es2panda::parser::ExpressionParseFlags> : std::true_type { 99 struct IsAllowedType<ark::es2panda::parser::StatementParsingFlags> : std::true_type {
|
/arkcompiler/ets_frontend/ets2panda/aot/ |
H A D | main.cpp | 21 #include "es2panda.h" 31 namespace ark::es2panda::aot { 54 static int CompileFromSource(es2panda::Compiler &compiler, es2panda::SourceFile &input, util::Options *options) in CompileFromSource() 78 static int CompileFromConfig(es2panda::Compiler &compiler, util::Options *options) in CompileFromConfig() 98 es2panda::SourceFile input(src, parserInput, options->ParseModule()); in CompileFromConfig() 101 options->ListFiles() && std::cout << "> es2panda: compiling from '" << src << "' to '" << dst << "'" in CompileFromConfig() 105 std::cout << "> es2panda: failed to compile from " << src << " to " << dst << std::endl; in CompileFromConfig() 143 es2panda::Compiler compiler(options->Extension(), options->ThreadCount(), std::move(pluginsOpt.value())); in Run() 164 es2panda in Run() [all...] |
/arkcompiler/ets_frontend/es2panda/ir/statements/ |
H A D | forInStatement.h | 21 namespace panda::es2panda::compiler { 23 } // namespace panda::es2panda::compiler 25 namespace panda::es2panda::checker { 28 } // namespace panda::es2panda::checker 30 namespace panda::es2panda::binder { 32 } // namespace panda::es2panda::binder 34 namespace panda::es2panda::ir { 87 } // namespace panda::es2panda::ir
|
H A D | blockStatement.h | 21 namespace panda::es2panda::compiler { 23 } // namespace panda::es2panda::compiler 25 namespace panda::es2panda::checker { 28 } // namespace panda::es2panda::checker 30 namespace panda::es2panda::binder { 32 } // namespace panda::es2panda::binder 34 namespace panda::es2panda::ir { 66 } // namespace panda::es2panda::ir
|
H A D | whileStatement.h | 21 namespace panda::es2panda::compiler { 23 } // namespace panda::es2panda::compiler 25 namespace panda::es2panda::checker { 28 } // namespace panda::es2panda::checker 30 namespace panda::es2panda::binder { 32 } // namespace panda::es2panda::binder 34 namespace panda::es2panda::ir { 76 } // namespace panda::es2panda::ir
|
/arkcompiler/ets_frontend/es2panda/ir/base/ |
H A D | catchClause.h | 21 namespace panda::es2panda::compiler { 23 } // namespace panda::es2panda::compiler 25 namespace panda::es2panda::checker { 28 } // namespace panda::es2panda::checker 30 namespace panda::es2panda::binder { 32 } // namespace panda::es2panda::binder 34 namespace panda::es2panda::ir { 83 } // namespace panda::es2panda::ir
|
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
H A D | tsTypeAliasDeclaration.h | 21 namespace panda::es2panda::binder { 23 } // namespace panda::es2panda::binder 25 namespace panda::es2panda::compiler { 27 } // namespace panda::es2panda::compiler 29 namespace panda::es2panda::checker { 32 } // namespace panda::es2panda::checker 34 namespace panda::es2panda::ir { 83 } // namespace panda::es2panda::ir
|