File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
src/main/clojure/clojure/tools Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 148
148
(cons f bodies)
149
149
(cons f (cons name bodies)))))
150
150
151
- (defn- expand-method
152
- " Handle a method in a deftype* or reify* form."
153
- [m]
154
- (rest (expand-fn (cons 'fn* m))))
155
-
156
151
(defn- expand-deftype
157
152
" Handle deftype* forms."
158
153
[[symbol typename classname fields implements interfaces & methods]]
159
154
(assert (= implements :implements ))
160
- (let [expanded-methods (map expand-method methods)]
155
+ (let [expanded-methods (map #( expand-args % 2 ) methods)]
161
156
(concat
162
157
(list symbol typename classname fields implements interfaces)
163
158
expanded-methods)))
164
159
165
160
(defn- expand-reify
166
161
" Handle reify* forms."
167
162
[[symbol interfaces & methods]]
168
- (let [expanded-methods (map expand-method methods)]
163
+ (let [expanded-methods (map #( expand-args % 2 ) methods)]
169
164
(cons symbol (cons interfaces expanded-methods))))
170
165
171
166
; Handlers for special forms that require special treatment. The default
You can’t perform that action at this time.
0 commit comments