|
@@ -25,8 +25,10 @@ def extract_function_name(node) -> tuple[demangler.Node, ...]:
|
|
|
# this name will include the class at the start
|
|
|
def _extract(node: demangler.Node):
|
|
|
match node:
|
|
|
- case node if node.kind in ("name", "cv_qual"):
|
|
|
+ case node if node.kind in "name":
|
|
|
return node.value
|
|
|
+ case node if node.kind == "cv_qual":
|
|
|
+ return _extract(node.value)
|
|
|
case node if node.kind == "qual_name":
|
|
|
return node.value
|
|
|
raise ValueError(f"Unexpected node {node!r}")
|