Skip to content

Commit

Permalink
wip [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Oct 6, 2024
1 parent 38b0a8b commit 1f43413
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/sci/impl/analyzer.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -1814,10 +1814,21 @@
(interop/get-static-field clazz (str meth))
stack)
;; HERE we are pretty sure that we should produce a method-fn
(.getMethod clazz)
(.getMethods clazz)
))
))

#?(:clj
(comment
(def meths (.getMethods Integer))
(def with-name (filter (fn [^java.lang.reflect.Method m]
(= "parseInt" (.getName m)))
meths))
(def arities (map (fn [^java.lang.reflect.Method m]
(count (.getParameterTypes m)))
with-name))
))

;; This could be a protocol, but there's not a clear win in doing so:
;; https://github.com/babashka/sci/issues/848
(defn analyze
Expand Down

0 comments on commit 1f43413

Please sign in to comment.