(:before) - Operators
select a value that appears before another
clojure
(:before anchor val)Where:
Guides
Examples
Find module-level calls that execute before function definitions to detect initialization order issues.
clojure
(:before (fun) (call))Selects in lines { 1 }:
typescript
configure()
def configure():
pass
def render():
setup()Locate translate() calls before i18n initialization to fix ordering bugs.
clojure
(:inside
(fun /render/)
(:before
(call init_i18n)
(call translate)))Selects in lines { 2, 2 }:
typescript
def render1():
translate()
def render2():
init_i18n()
translate()
def render3():
translate()
init_i18n()Find variables declared before a specific import to reorder dependencies.
clojure
(:before (import react) (id))Selects in lines { 1 }:
typescript
x
import { useState } from 'react'
yInclude the anchor in results by refining with :into.
clojure
(:before (:into (fun)) (id))Selects in lines { 1, 2 }:
typescript
x
def y():Arguments
anchor
- (:into)
- (:after)
- (:at)
- (:before)
- (:inside)
- (:nearest)
- (:outside)
- (:kind)
- (:ref)
- (:text)
- ...language selectors
Does NOT support: Composition — Replacement
val
- inherit