Skip to content

Commit 9a8f0da

Browse files
committed
feat: infer-tag depend on process-method-value
1 parent 45eaa61 commit 9a8f0da

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/main/clojure/clojure/tools/analyzer/jvm.clj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
[box :refer [box]]
3535
[constant-lifter :refer [constant-lift]]
3636
[classify-invoke :refer [classify-invoke]]
37+
[process-method-value :refer [process-method-value]]
3738
[validate :refer [validate]]
3839
[infer-tag :refer [infer-tag]]
3940
[validate-loop-locals :refer [validate-loop-locals]]
@@ -483,6 +484,7 @@
483484
#'box
484485

485486
#'analyze-host-expr
487+
#'process-method-value
486488
#'validate-loop-locals
487489
#'validate
488490
#'infer-tag

src/main/clojure/clojure/tools/analyzer/passes/jvm/infer_tag.clj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
[annotate-tag :refer [annotate-tag]]
1717
[annotate-host-info :refer [annotate-host-info]]
1818
[analyze-host-expr :refer [analyze-host-expr]]
19-
[fix-case-test :refer [fix-case-test]]]))
19+
[fix-case-test :refer [fix-case-test]]
20+
[process-method-value :refer [process-method-value]]]))
2021

2122
(defmulti -infer-tag :op)
2223
(defmethod -infer-tag :default [ast] ast)
@@ -269,7 +270,7 @@
269270
Passes opts:
270271
* :infer-tag/level If :global, infer-tag will perform Var tag
271272
inference"
272-
{:pass-info {:walk :post :depends #{#'annotate-tag #'annotate-host-info #'fix-case-test #'analyze-host-expr} :after #{#'trim}}}
273+
{:pass-info {:walk :post :depends #{#'annotate-tag #'annotate-host-info #'fix-case-test #'analyze-host-expr #'process-method-value} :after #{#'trim}}}
273274
[{:keys [tag form] :as ast}]
274275
(let [tag (or tag (:tag (meta form)))
275276
ast (-infer-tag ast)]

0 commit comments

Comments
 (0)