We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
long
1 parent 7cc8365 commit 4a8970dCopy full SHA for 4a8970d
src/refactor_nrepl/find/find_locals.clj
@@ -6,12 +6,14 @@
6
[refactor-nrepl.core :as core]
7
[refactor-nrepl.s-expressions :as sexp]))
8
9
-(defn find-used-locals [{:keys [file ^long line ^long column]}]
+(defn find-used-locals [{:keys [file line column]}]
10
{:pre [(number? line)
11
(number? column)
12
(not-empty file)]}
13
(core/throw-unless-clj-file file)
14
- (let [content (slurp file)
+ (let [line (long line)
15
+ column (long column)
16
+ content (slurp file)
17
ast (ana/ns-ast content)
18
sexp (sexp/get-enclosing-sexp content (dec line) (dec column))
19
selected-sexp-node (->> ast
0 commit comments