Closed github-learning-lab[bot] closed 4 years ago
Edit the file plugin-options.ql
and copy there your previous query.
from
clause so that the variable that describes that jQuery plugin is of type DataFlow::FunctionNode
. As the name suggests, this is a data flow node that refers to a function definition. By typing this variable with this type, your query will restrict the possible values for your plugin variable to this type only.DataFlow::FunctionNode
and find the one that will get you the last parameter of that function.DataFlow::ParameterNode
Submit your query.
Ooops! The query you submitted in 20f1a3de8d9a27d12ef897aeee1a147479f27834 didn't find the right results. Have a look at the comment.
To submit a new iteration of your query, you just have to push a new commit to the same branch (the default branch or the PR branch).
Congratulations, looks like the query you introduced in 321a3e3a6e5d2ab8fb80f42a339575e8c4a5b729 finds the correct results!
Take a look at the instructions for the next step to continue.
Step 8: Finding the jQuery plugin options
Now we want to finally find the jQuery plugin options. These are the last parameter of the functions that we found in the previous step.