Skip to content

Commit 3620434

Browse files
frenchy64swannodette
authored andcommitted
add :val to :const node
1 parent c7c7449 commit 3620434

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/clojure/cljs/analyzer.cljc

+4-4
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@
12091209
(defn analyze-keyword
12101210
[env sym]
12111211
(register-constant! env sym)
1212-
{:op :const :env env :form sym :tag 'cljs.core/Keyword})
1212+
{:op :const :val sym :env env :form sym :tag 'cljs.core/Keyword})
12131213

12141214
(defn get-tag [e]
12151215
(if-some [tag (-> e :form meta :tag)]
@@ -3199,7 +3199,7 @@
31993199
(if ^boolean (:quoted? env)
32003200
(do
32013201
(register-constant! env sym)
3202-
(analyze-wrap-meta {:op :const :env env :form sym :tag 'cljs.core/Symbol}))
3202+
(analyze-wrap-meta {:op :const :val sym :env env :form sym :tag 'cljs.core/Symbol}))
32033203
(let [{:keys [line column]} (meta sym)
32043204
env (if-not (nil? line)
32053205
(assoc env :line line)
@@ -3591,7 +3591,7 @@
35913591
(instance? Character form) 'string
35923592
(true? form) 'boolean
35933593
(false? form) 'boolean)]
3594-
(cond-> {:op :const :env env :form form}
3594+
(cond-> {:op :const :val form :env env :form form}
35953595
tag (assoc :tag tag))))))
35963596

35973597
#?(:cljs
@@ -3613,7 +3613,7 @@
36133613
(string? form) STRING_SYM
36143614
(true? form) BOOLEAN_SYM
36153615
(false? form) BOOLEAN_SYM)]
3616-
(cond-> {:op :const :env env :form form}
3616+
(cond-> {:op :const :val form :env env :form form}
36173617
tag (assoc :tag tag))))))
36183618

36193619
(defn analyze* [env form name opts]

0 commit comments

Comments
 (0)