add symbol resolution to import detection

This commit is contained in:
2025-10-11 16:44:05 +05:30
parent 2483ef2840
commit 7940d02bc7
2 changed files with 46 additions and 16 deletions

View File

@ -1,8 +1,16 @@
import ast
import logging
import importlib
logger = logging.getLogger(__name__)
def process_vmlinux_class(node, module, vmlinux_types):
def get_module_symbols(module_name: str):
module = importlib.import_module(module_name)
return [name for name in dir(module)]
def process_vmlinux_class(node, module):
# Process ClassDef nodes that use vmlinux imports
pass
symbols = get_module_symbols("vmlinux")
# print(symbols)
pass