/* * Copyright (c) 2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef ABC2PROGRAM_ABC_LITERAL_ARRAY_PROCESSOR_H #define ABC2PROGRAM_ABC_LITERAL_ARRAY_PROCESSOR_H #include "abc_file_entity_processor.h" namespace panda::abc2program { class AbcLiteralArrayProcessor : public AbcFileEntityProcessor { public: AbcLiteralArrayProcessor(panda_file::File::EntityId entity_id, Abc2ProgramEntityContainer &entity_container, panda_file::LiteralDataAccessor &literal_data_accessor); void FillProgramData() override; void FillModuleRequestPhase(); private: void GetLiteralArrayById(pandasm::LiteralArray *lit_array, panda_file::File::EntityId lit_array_id) const; void FillLiteralData(pandasm::LiteralArray *lit_array, const panda_file::LiteralDataAccessor::LiteralValue &value, const panda_file::LiteralTag &tag) const; panda_file::LiteralDataAccessor &literal_data_accessor_; pandasm::LiteralArray literal_array_; }; } // namespace panda::abc2program #endif // ABC2PROGRAM_ABC_LITERAL_ARRAY_PROCESSOR_H