Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Step 8 - Finding jQuery plugin options: final step #13

Closed
github-learning-lab bot opened this issue Jul 24, 2021 · 2 comments
Closed

Step 8 - Finding jQuery plugin options: final step #13

github-learning-lab bot opened this issue Jul 24, 2021 · 2 comments
Assignees

Comments

@github-learning-lab
Copy link

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.

@github-learning-lab
Copy link
Author

⌨️ Write your query

Edit the file plugin-options.ql and copy there your previous query.

  1. Modify your 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.
  2. Use auto-completion on that variable to browse the predicates of DataFlow::FunctionNode and find the one that will get you the last parameter of that function. This parameter is typed DataFlow::ParameterNode
  3. Modify your select statement to return both the plugin and the parameter.

Submit your query.

@github-learning-lab
Copy link
Author

Congratulations, looks like the query you introduced in 9d084b0 finds the correct results!

Take a look at the instructions for the next step to continue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant