Repository navigation
[Query] Does Call
Generated from 'wiki-query.ts' on 2026-11-08, 09:20:49 UTC (v2.17.4), do not edit directly.
Does-Call Query [overview]
Checks whether a function calls another function matching given constraints.
This query is requested with the type does-call.
Run in the REPL: :query @does-call (<criterion>:$<id>|"<name>") <code | file://path>
This query checks whether a function calls another function matching given constraints.
Using the example code:
f <- function(x) { eval(x) };
f("1 + 1")the following query checks whether the call to f calls eval:
[ { "type": "does-call", "queryId": "calls-eval", "call": "2@f", "calls": { "type": "name", "name": "eval", "nameExact": true } } ](This can be shortened to @does-call (2@f:"eval") when used with the REPL command :query).
Results (prettified and summarized):
Query: does-call
- calls-eval found:
- Call with id 15 (2.1)
Show Detailed Results as Json
The analysis ran (including parsing and normalization and the query) within the generation environment.
The JSON contains the ids of the nodes in question (see the Interface wiki page).
{"does-call":{".meta":{},"results":{"calls-eval":{"call":15}}},".meta":{}}Original Code
f <- function(x) { eval(x) };
f("1 + 1")Implementation Details
The Does-Call Query is executed by executeDoesCallQuery.
Currently maintained by Florian Sihler and Oliver Gerstl at Ulm University
Email | GitHub | Penguins | Portfolio
- 🧑💻 Developer Onboarding
- 💻 Setup
- 👓 Overview
- 🪟 Interfacing with flowR
- 🌋 Core
- 🧹 Testing & Linting (Benchmark Page)
⁉️ FAQ- ℹ️ Extra Information