Closed github-learning-lab[bot] closed 3 years ago
As before, if you don't know how a piece of source code is represented in the library, you can use the auto-completion and contextual help to discover the classes and predicates you need.
8_macro_expressions.ql
with the previous querygetExpr()
predicate in the select
section, to return the wanted expressions. Congratulations, looks like the query you introduced in 45f1a104e81e93f1bc2c30a7e9bf033703700b0a finds the correct results!
If you created a pull request, merge it.
Let's continue to the next step.
Step 8: Changing the selected output
In the previous step, you found invocations of the macros we are interested in. Modify your query to find the top-level expressions these macro invocations expand to.
Note: An expression is a source code element that can have a value at runtime. Invoking a macro can bring various source code elements into scope, including expressions.