File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 495
495
(get mapped-types t) (get mapped-types t)
496
496
497
497
#?(:clj (.startsWith t " !" )
498
- :cljs (gstring/startsWith t " !" )) t
498
+ :cljs (gstring/startsWith t " !" ))
499
+ (str " !" (resolve-type env (subs t 1 )))
499
500
500
501
#?(:clj (.startsWith t " {" )
501
502
:cljs (gstring/startsWith t " {" )) t
502
503
503
504
#?(:clj (.startsWith t " function" )
504
505
:cljs (gstring/startsWith t " function" )) t
505
506
507
+ #?(:clj (.endsWith t " =" )
508
+ :cljs (gstring/endsWith t " =" ))
509
+ (str (resolve-type env (subs t 0 (dec (count t)))) " =" )
510
+
506
511
:else
507
- (let [optional? #?(:clj (.endsWith t " =" )
508
- :cljs (gstring/endsWith t " =" ))
509
- t (if optional?
510
- (subs t 0 (dec (count t)))
511
- t)
512
- ret (munge (str (:name (ana/resolve-var env (symbol t)))))]
513
- (if optional?
514
- (str ret " =" )
515
- ret))))
512
+ (munge (str (:name (ana/resolve-var env (symbol t)))))))
516
513
517
514
(defn resolve-types [env ts]
518
515
(let [ts (-> ts string/trim (subs 1 (dec (count ts))))
You can’t perform that action at this time.
0 commit comments