File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/cljs/cljs/analyzer/passes Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2828
2929(defn single-binding-let? [ast]
3030 (and (= :let (:op ast))
31- (= 1 (count (-> ast :bindings )))))
31+ (= 1 (count (-> ast :bindings )))))
3232
3333(defn no-statements? [let-ast ]
3434 (= [] (-> let-ast :body :statements )))
4646 ; ; remove :env, if same, local will differ only by
4747 ; ; :context (:expr | :statement)
4848 (= (dissoc (:test if-ast ) :env )
49- (dissoc (:then if-ast ) :env )))
49+ (dissoc (:then if-ast ) :env )))
5050
5151(defn test=else? [if-ast ]
5252 ; ; remove :env, if same, local will differ only by
6060
6161(defn simple-or? [ast]
6262 (and (simple-test-binding-let? ast)
63- (test=then? (-> ast :body :ret ))))
63+ (test=then? (-> ast :body :ret ))))
6464
6565(defn optimizable-and? [ast]
6666 (and (simple-and? ast)
You can’t perform that action at this time.
0 commit comments