Skip to content

(id)

identifier references

clojure
(id val?)

Where:

  1. val: identifier name to match *

Behavior

  • Does not match identifiers in definition names (e.g., def foo()); use (fun foo) for function definitions.

Examples

Find usages of a global settings object before dependency injection.

clojure
(id settings)

Selects in lines { 1, 1, 1 } but not in { 3 }:

python
settings = load_settings()
print(settings["db"])
config = settings["api"]

List private variables for cleanup.

clojure
(id /^_/)

Selects in lines { 1, 3, 1 } but not in { 2 }:

python
_tmp = 1
public = 2
_hidden = _tmp

Find all usages of a deprecated function to assess migration impact.

clojure
(call process_sync)

Selects in lines { 1, 1 } but not in { }:

python
def process_sync():
    pass

# Legacy code still using sync version
process_sync()
result = process_sync()

Arguments

val

• Identifier • String • Pattern

Does NOT support: CompositionFree-form SelectionRefinementReplacement

Copyright © 2022-present Semantic Works, Inc.