File tree 2 files changed +6
-7
lines changed
tools-analyzer/nextjournal/clerk/clojure/tools/analyzer
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 1
- (ns qualified-methods )
1
+ (ns qualified-methods
2
+ {:nextjournal.clerk/no-cache true })
2
3
3
4
(String/.length " foo" )
4
5
@@ -10,12 +11,10 @@ Integer/parseInt ;; method value
10
11
11
12
String/CASE_INSENSITIVE_ORDER ; ; field
12
13
13
- ; ; TODO: get rid of reflection
14
14
(String/new " dude" ) ; ; constructor
15
15
16
- String/new
16
+ ^[String] String/new
17
17
18
- (map String/new [" dude" ])
18
+ (map ^[String] String/new [" dude" ])
19
19
20
20
(map Integer/parseInt [" 1" " 2" " 3" ])
21
-
Original file line number Diff line number Diff line change 136
136
(cond
137
137
(= " new" opname)
138
138
`(fn
139
- ([x#] (new ~(symbol sym-ns) x#))
139
+ ([x#] (new ~(symbol sym-ns) x# d ))
140
140
; ; TODO: analyze method and return properly expanded fn
141
141
)
142
142
(or (.startsWith opname " ." )
669
669
670
670
(macroexpand-1 'clojure.lang.Compiler/LOADER)
671
671
(macroexpand-1 '(String/new " foo" ))
672
- ( macroexpand-1 'String/new)
672
+
673
673
)
You can’t perform that action at this time.
0 commit comments