MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeText-parser / get_class_list

Method get_class_list

src/codetext/parser/ruby_parser.py:28–36  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

26
27 @staticmethod
28 def get_class_list(node):
29 res = get_node_by_kind(node, ['class', 'module'])
30
31 # remove class keywords
32 for node in res[:]:
33 if not node.children:
34 res.remove(node)
35
36 return res
37
38 @staticmethod
39 def get_docstring_node(node) -> str:

Callers

nothing calls this directly

Calls 1

get_node_by_kindFunction · 0.85

Tested by

no test coverage detected