codeql python query for call hierarchy of a site-package function from repository source code #16427
Unanswered
noamilshtein
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Have you tried restricting the "starting point" of the call graph to from CallNode call, Value val, Scope scope
where
callNode.getFile().getBaseName() = "my_client.py"
and calls(call, val, scope)
and val.getName().matches("%prepare_data%")
select call, val, scope, val.getName(), call.getScope() |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm trying to get the call hierarchy of
prepare_data
function called bysend
function of websockets site-packagewhere websockets.send() is called from my repository source code (in
my_client.py
).the query below returns calls to
prepare_data
fromsend
andbroadcast
functions (defined in websockets site-package) but i would like to get only the calls tracing back tomy_client.py
, meaning i don't wish to get a result forbroadcast
function.Beta Was this translation helpful? Give feedback.
All reactions