cljs / api

ClojureScript API parser
http://cljs.github.io/api/
MIT License
193 stars 23 forks source link

add 3-arity version of set! #182

Closed dancek closed 2 years ago

dancek commented 5 years ago

An example can be seen in a comment in the parser code, but otherwise this is not very well documented.

(defmethod parse 'set!
  [_ env [_ target val alt :as form] _ _]
  (let [[target val] (if alt
                       ;; (set! o -prop val)
                       [`(. ~target ~val) alt]
                       [target val])]
; ...
shaunlebron commented 2 years ago

Very cool! Thank you! 👍

shaunlebron commented 2 years ago

Published ✓

So sorry for the delay. Not sure why I wasn’t getting these notifications, but I’ll be watching them now.