File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
- ...
5
+ * Make library more GraalVM ` native-image ` friendly
6
6
7
7
## 0.7.184
8
8
Original file line number Diff line number Diff line change 223
223
224
224
(def ^:private visitChildren-meth
225
225
; ; cached reflection only happens once
226
- (delay ( let [meth (.getDeclaredMethod AbstractVisitor " visitChildren" (into-array [Node]))]
227
- (.setAccessible meth true )
228
- meth) ))
226
+ (let [meth (.getDeclaredMethod AbstractVisitor " visitChildren" (into-array [Node]))]
227
+ (.setAccessible meth true )
228
+ meth))
229
229
230
230
(defn node->data [{:as ctx-in :keys [footnotes]} ^Node node]
231
231
(assert (:type ctx-in) " :type must be set on initial doc" )
267
267
(if (get-method open-node (class node))
268
268
(with-tight-list node
269
269
(swap! !ctx open-node node)
270
- (.invoke ^java.lang.reflect.Method @ visitChildren-meth this (into-array Object [node]))
270
+ (.invoke ^java.lang.reflect.Method visitChildren-meth this (into-array Object [node]))
271
271
(swap! !ctx close-node node))
272
272
(prn ::not-implemented node))))))
273
273
Original file line number Diff line number Diff line change 75
75
(let [next-non-space (.getNextNonSpaceIndex state)
76
76
m (block-formula-delimiter-matcher state)]
77
77
(if (re-find m)
78
- (.atIndex (BlockStart/of (into-array [(block-formula-parser )]))
78
+ (.atIndex (BlockStart/of (into-array BlockParser [(block-formula-parser )]))
79
79
(+ next-non-space (.end m)))
80
80
(BlockStart/none )))))))
81
81
94
94
(let [next-non-space (.getNextNonSpaceIndex state)
95
95
m (block-toc-delimiter-matcher state)]
96
96
(if (re-find m)
97
- (.atIndex (BlockStart/of (into-array [(block-toc-parser )]))
97
+ (.atIndex (BlockStart/of (into-array BlockParser [(block-toc-parser )]))
98
98
(+ next-non-space (.end m)))
99
99
(BlockStart/none )))))))
100
100
You can’t perform that action at this time.
0 commit comments