1 /** 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef ES2PANDA_LSP_INCLUDE_CLASSHIERARCHY_H 17 #define ES2PANDA_LSP_INCLUDE_CLASSHIERARCHY_H 18 19 #include <tuple> 20 #include <vector> 21 #include "api.h" 22 #include "ir/astNode.h" 23 #include "line_column_offset.h" 24 #include "public/es2panda_lib.h" 25 26 namespace ark::es2panda::lsp { 27 ir::AstNode *GetTargetDeclarationNodeByPosition(es2panda_Context *context, size_t pos); 28 // NOLINTBEGIN(misc-non-private-member-variables-in-classes) 29 const ir::AstNode *GetEffectiveBaseTypeNode(const ir::AstNode *node); 30 // NOLINTEND(misc-non-private-member-variables-in-classes) 31 void GetSuperTypeHierarchies(const ir::AstNode *node, TypeHierarchies &typeHierarchies, 32 std::set<TypeHierarchies> &superLists); 33 TypeHierarchiesInfo GetTypeHierarchiesImpl(es2panda_Context *context, size_t pos, 34 const ir::AstNode *declaration = nullptr); 35 } // namespace ark::es2panda::lsp 36 #endif