Skip to content

Commit

Permalink
* refactor last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Dec 5, 2023
1 parent 38fa4c2 commit 22e3dc4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/clojure/cljs/externs.clj
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,10 @@
{:tag (get-tag ty)}
(if (or (.isConstructor info) (.isInterface info))
(let [qname (symbol (.. node getFirstChild getQualifiedName))]
(cond-> (merge {:tag 'Function}
(when (.hasBaseType info)
{:super (get-tag (.getBaseType info))}))
(cond-> {:tag 'Function}
(.isConstructor info) (merge {:ctor qname})
(.isInterface info) (merge {:iface qname})))
(.isInterface info) (merge {:iface qname})
(.hasBaseType info) (merge {:super (get-tag (.getBaseType info))})))
(if (or (.hasReturnType info)
(as-> (.getParameterCount info) c
(and c (pos? c))))
Expand Down

0 comments on commit 22e3dc4

Please sign in to comment.