|
@@ -8,7 +8,7 @@
|
|
|
import itanium_demangler as demangler
|
|
|
|
|
|
|
|
|
-def extract_method_classname(node) -> tuple[demangler.Node, ...]:
|
|
|
+def extract_method_classname(node: demangler.Node) -> tuple[demangler.Node, ...]:
|
|
|
def _extract(node: demangler.Node):
|
|
|
match node:
|
|
|
case node if node.kind == "qual_name":
|
|
@@ -21,7 +21,7 @@ def extract_method_classname(node) -> tuple[demangler.Node, ...]:
|
|
|
raise ValueError(f"{node} is not a function")
|
|
|
|
|
|
|
|
|
-def extract_function_name(node) -> tuple[demangler.Node, ...]:
|
|
|
+def extract_function_name(node: demangler.Node) -> tuple[demangler.Node, ...]:
|
|
|
# this name will include the class at the start
|
|
|
def _extract(node: demangler.Node):
|
|
|
match node:
|
|
@@ -39,9 +39,9 @@ def extract_function_name(node) -> tuple[demangler.Node, ...]:
|
|
|
raise ValueError(f"{node} is not a function")
|
|
|
|
|
|
|
|
|
-def extract_vtable_typename(node):
|
|
|
+def extract_vtable_typename(node: demangler.Node):
|
|
|
# extracts the typename of a vtable, guaranteed as a tuple of nodes
|
|
|
- def _extract(node):
|
|
|
+ def _extract(node: demangler.Node):
|
|
|
match node:
|
|
|
case node if node.kind == "qual_name":
|
|
|
return node.value
|