| 205 | |
| 206 | |
| 207 | class LanguageParser(ABC): |
| 208 | BLACKLISTED_FUNCTION_NAMES = [] |
| 209 | |
| 210 | @staticmethod |
| 211 | @abstractmethod |
| 212 | def get_function_list(node): |
| 213 | pass |
| 214 | |
| 215 | @staticmethod |
| 216 | @abstractmethod |
| 217 | def get_class_list(node): |
| 218 | pass |
| 219 | |
| 220 | @staticmethod |
| 221 | @abstractmethod |
| 222 | def get_docstring_node(node) -> List[tree_sitter.Node]: |
| 223 | pass |
| 224 | |
| 225 | @staticmethod |
| 226 | @abstractmethod |
| 227 | def get_comment_node(node) -> List[tree_sitter.Node]: |
| 228 | pass |
| 229 | |
| 230 | @staticmethod |
| 231 | @abstractmethod |
| 232 | def get_class_metadata(class_node, blob=None): |
| 233 | pass |
| 234 | |
| 235 | @staticmethod |
| 236 | @abstractmethod |
| 237 | def get_function_metadata(function_node, blob=None) -> Dict[str, str]: |
| 238 | pass |
| 239 | |
| 240 | |
| 241 | # @staticmethod |
| 242 | # @abstractmethod |
| 243 | # def get_function_definitions(tree, blob) -> List: |
| 244 | # pass |
| 245 | |
| 246 | # @staticmethod |
| 247 | # @abstractmethod |
| 248 | # def get_class_definitions(tree, blob) -> List: |
| 249 | # pass |
| 250 | |
| 251 | # @staticmethod |
| 252 | # @abstractmethod |
| 253 | # def get_line_definitions(tree, blob) -> List: |
| 254 | # pass |
| 255 | |
| 256 | # @staticmethod |
| 257 | # @abstractmethod |
| 258 | # def get_context(tree, blob): |
| 259 | # raise NotImplementedError |
| 260 | |
| 261 | # @staticmethod |
| 262 | # @abstractmethod |
| 263 | # def get_calls(tree, blob): |
| 264 | # raise NotImplementedError |
nothing calls this directly
no outgoing calls
no test coverage detected