Skip to content

Commit 19231c7

Browse files
committed
clean entities and use correct labels
1 parent c35fd13 commit 19231c7

19 files changed

+654
-885
lines changed

api/analyzers/analyzer.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,19 @@ def resolve(self, files: dict[Path, File], lsp: SyncLanguageServer, path: Path,
2323
except Exception as e:
2424
return []
2525

26+
@abstractmethod
27+
def get_entity_label(self, node: Node) -> str:
28+
"""
29+
Get the entity label from the node.
30+
31+
Args:
32+
node (Node): The node.
33+
34+
Returns:
35+
str: The entity label.
36+
"""
37+
pass
38+
2639
@abstractmethod
2740
def get_entity_name(self, node: Node) -> str:
2841
"""

0 commit comments

Comments
 (0)