You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are other instances as well. As of now i did a experiment using tree sitters -
if node.type == "call":
call_obj = self.__extract_function_call(node)
def __extract_function_call(self, call_node: Node) -> Optional[ChapiFunctionCall]:
func_name, node_name = None, None
args = []
arg_list = None
# Identify function name and arguments
for child in call_node.children:
if child.type == "identifier":
func_name = child.text.decode('utf8')
elif child.type == "attribute":
func_name, node_name = self.__extract_attribute_name(child)
elif child.type == "argument_list":
arg_list = child
if arg_list:
args = self.__extract_call_parameters(arg_list)
return ChapiFunctionCall(
NodeName=node_name,
FunctionName=func_name,
Parameters=args
)
This works for all. I am not sure if problem is with Antlr or chapi. Please let me know if more information is needed.
Also if there is less time as of now i can complement this tree sitter parsing with chapi post this fix archguard/archguard#159. thankyou
The text was updated successfully, but these errors were encountered:
JayGhiya
changed the title
Bug: Certain Function Calls are not captured
Bug: Python Certain Function Calls are not captured
Dec 21, 2024
For code:
This is not captured.
There are other instances as well. As of now i did a experiment using tree sitters -
This works for all. I am not sure if problem is with Antlr or chapi. Please let me know if more information is needed.
Also if there is less time as of now i can complement this tree sitter parsing with chapi post this fix archguard/archguard#159. thankyou
The text was updated successfully, but these errors were encountered: