(arg) - Rust
argument positions in call sites and function parameters
clojure
(arg pos? val?)Where:
Examples
Find calls that pass None as a fallback value.
clojure
(call _ (arg 2 (id None)))Selects in lines { 1 } but not in { 2 }:
rust
cache.get(key, None);
cache.get(key, Some(value));Find handlers whose first parameter is ctx.
clojure
(fun _ (arg 1 (id ctx)))Selects in lines { 1 } but not in { 2 }:
rust
fn handle(ctx: &Context, req: Request) {}
fn render(req: Request) {}Arguments
pos
- Number
- Numeric Range
Does NOT support: Composition — Free-form Selection — Refinement — Replacement
val
- Identifier: shorthand for (id)
- String: shorthand for (str)
- (:into)
- (:nearest)
- (:and)
- (:or)
- (:not)
- (:text)
- (:kind)
- (:replace)
- (:replace-in)
- (:capture)
- (:ref)
- (call)
- (enum)
- (fun)
- (id)
- (match-arm)
- (mem)
- (num)
- (str)