Skip to content

Commit 26d3384

Browse files
committed
add line number to parsed JS node
1 parent 4e4ac4a commit 26d3384

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/clojure/cljs/externs.clj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
{:tag 'Function
5252
:ret-tag (get-type* (.getReturnType info))
5353
:arglists (list (into [] (map symbol (.getParameterNames info))))})))
54+
{:line (.getLineno node)}
5455
(when-let [doc (.getOriginalCommentString info)]
5556
{:doc doc}))))))
5657

@@ -179,6 +180,10 @@
179180
2)
180181
last meta)
181182

183+
(parse-externs
184+
(closure/js-source-file "goog/string/string.js"
185+
(io/input-stream (io/resource "goog/string/string.js"))))
186+
182187
(externs-map
183188
[(closure/js-source-file "goog/string/string.js"
184189
(io/input-stream (io/resource "goog/string/string.js")))]

0 commit comments

Comments
 (0)