Gets the source IDs (row indices) corresponding to given token.
Usage
ids_with_token(source_expression, value, fun = `==`, source_file)
with_id(source_expression, id, source_file)
Arguments
- source_expression
A list of source expressions, the result of a call to
get_source_expressions()
, for the desired filename.- value
Character. String corresponding to the token to search for. For example:
"SYMBOL"
"FUNCTION"
"EQ_FORMALS"
"$"
"("
- fun
For additional flexibility, a function to search for in the
token
column ofparsed_content
. Typically==
or%in%
.- source_file
(DEPRECATED) Same as
source_expression
. Will be removed.- id
Integer. The index corresponding to the desired row of
parsed_content
.