| /arkcompiler/ets_frontend/ets2panda/ir/ets/ |
| D | etsScript.h | 30 : BlockStatement(allocator, std::move(statementList)), program_(program) in ETSScript() 37 return program_; in Program() 42 return program_; in Program() 46 parser::Program *program_;
|
| /arkcompiler/ets_frontend/es2panda/parser/context/ |
| D | parserContext.h | 74 explicit ParserContext(const Program *program) : program_(program) {} in DEFINE_BITOPS() 76 : program_(current->program_), prev_(current), label_(label) in DEFINE_BITOPS() 90 return program_; in DEFINE_BITOPS() 151 const Program *program_; in DEFINE_BITOPS()
|
| /arkcompiler/ets_frontend/ets2panda/checker/ets/ |
| D | etsWarningAnalyzer.cpp | 45 …if (program_ == nullptr || classDef->IsFinal() || classDef->IsAbstract() || classDef->IsStatic() || in AnalyzeClassDefForFinalModifier() 50 const auto statements = program_->Ast()->Statements(); in AnalyzeClassDefForFinalModifier() 81 …if (methodDef->IsAbstract() || methodDef->IsStatic() || classDef->IsFinal() || program_ == nullptr… in AnalyzeClassMethodForFinalModifier() 88 const auto statements = program_->Ast()->Statements(); in AnalyzeClassMethodForFinalModifier() 122 …if (node->IsClassDeclaration() && !program_->NodeContainsETSNolint(node, ETSWarnings::SUGGEST_FINA… in ETSWarningSuggestFinal() 175 program_->NodeContainsETSNolint(node, ETSWarnings::PROHIBIT_TOP_LEVEL_STATEMENTS)) { in ETSWarningsProhibitTopLevelStatements() 194 … if (program_->NodeContainsETSNolint(statement, ETSWarnings::PROHIBIT_TOP_LEVEL_STATEMENTS)) { in ETSWarningsProhibitTopLevelStatements() 213 …if (node->IsBinaryExpression() && !program_->NodeContainsETSNolint(node, ETSWarnings::BOOST_EQUALI… in ETSWarningBoostEqualityStatement() 227 …if (node->IsMethodDefinition() && !program_->NodeContainsETSNolint(node, ETSWarnings::REMOVE_ASYNC… in ETSWarningRemoveAsync() 240 …if (node->IsArrowFunctionExpression() && !program_->NodeContainsETSNolint(node, ETSWarnings::REMOV… in ETSWarningRemoveLambda() [all …]
|
| D | etsWarningAnalyzer.h | 25 : program_(program), etsWerror_(etsWerror) in ETSWarningAnalyzer() 74 parser::Program *program_; variable
|
| /arkcompiler/runtime_core/static_core/assembler/ |
| D | assembly-parser.cpp | 60 currRecord_->fieldList.emplace_back(program_.lang); in ParseRecordFields() 138 program_.arrayTypes.insert(*type); in ParseType() 404 if (program_.arrayTypes.find(type) == program_.arrayTypes.end()) { in ParseArrayElementType() 405 program_.arrayTypes.emplace(type, 1); in ParseArrayElementType() 407 } else if (ark::pandasm::Type::IsStringType(typeWithSlash.GetName(), program_.lang)) { in ParseArrayElementType() 414 if (program_.arrayTypes.find(typeWithSlash) == program_.arrayTypes.end()) { in ParseArrayElementType() 415 program_.arrayTypes.emplace(typeWithSlash, 1); in ParseArrayElementType() 651 auto dummyRecord = program_.recordTable.find(panda_file::GetDummyClassName()); in ParseAsUnionField() 652 if (dummyRecord == program_.recordTable.end()) { in ParseAsUnionField() 655 currRecord_->fieldList.emplace_back(program_.lang); in ParseAsUnionField() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/checker/ |
| D | checker.cpp | 48 program_ = varbinder_->Program(); in Initialize() 85 lexer::LineIndex index(program_->SourceCode()); in ThrowTypeError() 88 throw Error {ErrorType::TYPE, program_->SourceFilePath().Utf8(), message, loc.line, loc.col}; in ThrowTypeError() 98 lexer::LineIndex index(program_->SourceCode()); in LogTypeError() 101 …errorLogger_.WriteLog(Error {ErrorType::TYPE, program_->SourceFilePath().Utf8(), message, loc.line… in LogTypeError() 106 lexer::LineIndex index(program_->SourceCode()); in Warning() 110 auto fileName = program_->SourceFilePath().Utf8(); in Warning() 219 return program_; in Program() 224 program_ = program; in SetProgram()
|
| /arkcompiler/runtime_core/abc2program/ |
| D | abc2program_driver.cpp | 46 program_ = std::move(*compiler_.CompileAbcFile()); in Compile() 57 dumper.Dump(ofs, program_); in Dump() 64 return program_; in GetProgram()
|
| D | abc_class_processor.cpp | 33 program_->lang = LANG_ECMA; in FillProgramData() 43 ASSERT(program_->record_table.count(record_.name) == 0); in FillRecord() 45 program_->record_table.emplace(record_.name, std::move(record_)); in FillRecord()
|
| D | program_dump.cpp | 26 program_ = &program; in Dump() 53 if (program_->lang == panda::panda_file::SourceLang::ECMASCRIPT) { in DumpProgramLanguage() 66 auto it = program_->literalarray_table.begin(); in DumpLiteralArrayTable() 67 auto end = program_->literalarray_table.end(); in DumpLiteralArrayTable() 97 for (const auto &it : program_->record_table) { in DumpRecordTable() 206 auto it = program_->literalarray_table.find(literal_array_id_name); in DumpScalarValue() 207 ASSERT(it != program_->literalarray_table.end()); in DumpScalarValue() 237 for (const auto &it : program_->function_table) { in DumpFunctionTable() 641 for (const std::string &str : program_->strings) { in DumpStrings() 650 auto it = program_->literalarray_table.find(id_str); in ReplaceLiteralId4Ins() [all …]
|
| D | abc_file_entity_processor.cpp | 25 program_ = &(entity_container_.GetProgram()); in AbcFileEntityProcessor()
|
| D | abc2program_driver.h | 35 pandasm::Program program_; variable
|
| /arkcompiler/runtime_core/assembler/ |
| D | assembly-parser.cpp | 59 curr_record_->field_list.emplace_back(program_.lang); in ParseRecordFields() 137 program_.array_types.insert(*type); in ParseType() 394 if (program_.array_types.find(type) == program_.array_types.end()) { in ParseArrayElementType() 395 program_.array_types.emplace(type, 1); in ParseArrayElementType() 397 } else if (panda::pandasm::Type::IsStringType(type_with_slash.GetName(), program_.lang)) { in ParseArrayElementType() 399 if (program_.array_types.find(type_with_slash) == program_.array_types.end()) { in ParseArrayElementType() 400 program_.array_types.emplace(type_with_slash, 1); in ParseArrayElementType() 658 for (const auto &f : program_.function_table) { in ParseResetFunctionLabelsAndParams() 670 curr_func_ = &(program_.function_table.at(t.first)); in ParseResetFunctionLabelsAndParams() 694 for (auto &k : program_.function_table) { in ParseResetFunctionTable() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/parser/context/ |
| D | parserContext.h | 86 : program_(current->program_), prev_(current), label_(label), lang_(current->lang_) 102 return program_; 107 program_ = program; 176 const Program *program_;
|
| D | parserContext.cpp | 22 : program_(program), status_(status), lang_(ToLanguage(program->Extension())) in ParserContext()
|
| /arkcompiler/ets_frontend/es2panda/binder/ |
| D | binder.cpp | 65 if (program_->Kind() == parser::ScriptKind::MODULE) { in InitTopScope() 66 topScope_ = Allocator()->New<ModuleScope>(Allocator(), program_); in InitTopScope() 88 lexer::LineIndex index(program_->SourceCode()); in ThrowRedeclaration() 98 lexer::LineIndex index(program_->SourceCode()); in ThrowUndeclaredExport() 108 lexer::LineIndex index(program_->SourceCode()); in ThrowInvalidDstrTarget() 174 ASSERT(program_->ModuleRecord()); in AssignIndexToModuleVariable() 175 program_->ModuleRecord()->AssignIndexToModuleVariable(topScope_->AsModuleScope()); in AssignIndexToModuleVariable() 180 ASSERT(program_->Ast()); in IdentifierAnalysis() 187 ResolveReferences(program_->Ast()); in IdentifierAnalysis() 190 ResolveReferences(program_->Ast()); in IdentifierAnalysis() [all …]
|
| D | binder.h | 48 : program_(program), in Binder() 107 return program_->Allocator(); in Allocator() 122 return program_; in Program() 127 program_ = program; in SetProgram() 230 parser::Program *program_ {}; 298 if (scope_->AddTsDecl(Allocator(), decl, program_->Extension())) { in AddTsDecl() 316 if (scope_->AddTsDecl(Allocator(), decl, program_->Extension())) { in AddTsDecl() 333 if (scope_->AddDecl(Allocator(), decl, program_->Extension())) { in AddDecl() 351 if (scope_->AddDecl(Allocator(), decl, program_->Extension())) { in AddDecl()
|
| /arkcompiler/ets_frontend/ets2panda/varbinder/ |
| D | recordTable.cpp | 72 if (recordTable_->program_->OmitModuleName()) { in FormRecordName() 76 const auto &moduleName = recordTable_->program_->ModuleName(); in FormRecordName() 81 recordTable_->program_->Allocator()) in FormRecordName() 85 util::UString recordName(recordTable_->program_->Allocator()); in FormRecordName()
|
| D | recordTable.h | 63 program_(program), 146 program_ = program; 151 return program_; 156 return program_; 169 parser::Program *program_ {};
|
| /arkcompiler/runtime_core/static_core/libpandafile/ |
| D | line_number_program.h | 122 : state_(handler->GetState()), program_(program), handler_(handler) in LineNumberProgramProcessor() 204 auto opcode = static_cast<Opcode>(*program_); in ReadOpcode() 205 ++program_; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in ReadOpcode() 211 auto [regiserNumber, n, isFull] = leb128::DecodeSigned<int32_t>(program_); in ReadRegisterNumber() 213 program_ += n; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in ReadRegisterNumber() 295 const uint8_t *program_; variable
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | line_number_program.h | 125 : state_(handler->GetState()), program_(program), handler_(handler) in LineNumberProgramProcessor() 202 auto opcode = static_cast<Opcode>(*program_); in ReadOpcode() 203 ++program_; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in ReadOpcode() 209 auto [regiser_number, n, is_full] = leb128::DecodeSigned<int32_t>(program_); in ReadRegisterNumber() 211 program_ += n; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in ReadRegisterNumber() 287 const uint8_t *program_; variable
|
| /arkcompiler/ets_frontend/ets2panda/util/ |
| D | errorHandler.h | 27 explicit ErrorHandler(const parser::Program *program) : program_(program) {} in ErrorHandler() 35 const parser::Program *program_;
|
| D | errorHandler.cpp | 22 lexer::LineIndex index(program_->SourceCode()); in ThrowSyntaxError() 25 …throw Error {ErrorType::SYNTAX, program_->SourceFilePath().Utf8(), errorMessage, loc.line, loc.col… in ThrowSyntaxError()
|
| /arkcompiler/ets_frontend/ets2panda/test/unit/ |
| D | rest_parameter_flag_test.cpp | 49 program_ = GetProgram(argc, &argv, FILE_NAME, src); in SetCurrentProgram() 50 ASSERT_NE(program_.get(), nullptr); in SetCurrentProgram() 97 auto it = program_->functionTable.find(functionName.data()); in GetFunction() 98 if (it == program_->functionTable.end()) { in GetFunction() 105 std::unique_ptr<pandasm::Program> program_ {}; member in ark::es2panda::compiler::test::RestParameterTest
|
| /arkcompiler/runtime_core/abc2program/common/ |
| D | abc2program_entity_container.h | 36 : file_(file), program_(program), debug_info_extractor_(debug_info_extractor), in Abc2ProgramEntityContainer() 61 pandasm::Program &program_; variable
|
| /arkcompiler/ets_frontend/es2panda/parser/transformer/ |
| D | transformer.h | 85 : program_(nullptr), in Transformer() 271 auto ret = program_->Allocator()->New<T>(std::forward<Args>(args)...); in AllocNode() 280 return program_->Allocator(); in Allocator() 285 return program_->Binder(); in Binder() 320 return program_->Extension(); in Extension() 325 return program_->ModuleRecord(); in GetSourceTextModuleRecord() 330 return program_->RecordName(); in RecordName() 380 Program *program_; variable
|