Skip to content

[Query] Search

github-actions[bot] edited this page Nov 13, 2026 · 1 revision

Generated from 'wiki-query.ts' on 2026-11-13, 12:11:51 UTC (v2.17.6), do not edit directly.

Provides access to flowR's search API
This query is requested with the type search.

With this query you can use the Search API to conduct searches on the flowR analysis result.

Using the example code x + 1, the following query returns all uses of 'x' in the code:

[ { "type": "search",   "search": { "generator": { "type": "generator",     "name": "get",     "args": { "filter": { "name": "x" } } },    "search": [ { "type": "transformer",      "name": "filter",      "args": { "filter": "use" } } ] } } ]

Results (prettified and summarized):

Query: search (8 ms)
   ╰ query: {0}

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).

{"search":{".meta":{},"results":[{"ids":[0],"search":{"generator":{"type":"generator","name":"get","args":{"filter":{"name":"x"}}},"search":[{"type":"transformer","name":"filter","args":{"filter":"use"}}]}}]},".meta":{}}
Original Code
x + 1
Implementation Details

The Search Query is executed by executeSearch.

Clone this wiki locally

⌂ 换网址