(:after) - Operators
select a value that appears after another
clojure
(:after anchor val)Where:
Guides
Examples
Find variable uses after a null check to verify safe access.
clojure
(:inside
(fun)
(:after
(if (:and (id data) (id)))
(mem (:ref (id data)))))Selects in lines { 3 }:
typescript
def process():
if data:
return data.value
return NoneLocate translate() calls after i18n initialization to verify correct ordering.
clojure
(:inside
(fun /render/)
(:after
(call init_i18n)
(call translate)))Selects in lines { 2 }:
typescript
def render1():
translate()
def render2():
init_i18n()
translate()
def render3():
translate()
init_i18n()Find all code after an error check to understand error handling flow.
clojure
(:inside
(fun)
(:after
(if (:and (id error) (id)))
(call)))Selects in lines { 4 }:
typescript
def process():
if error:
log()
cleanup()Include the anchor in results by refining with :into.
clojure
(:after (:into (id a)) (id))Selects in lines { 1, 2 }:
typescript
a
b
aArguments
anchor
- (:into)
- (:after)
- (:at)
- (:before)
- (:inside)
- (:nearest)
- (:outside)
- (:kind)
- (:ref)
- (:text)
- ...language selectors
Does NOT support: Composition — Replacement
val
- inherit