44
55; ; Author: Felipe Ochoa <[email protected] >66; ; URL: https://github.com/felipeochoa/rjsx-mode/
7- ; ; Package-Requires: ((emacs "24.4") (js2-mode "20160623 "))
7+ ; ; Package-Requires: ((emacs "24.4") (js2-mode "20170504 "))
88; ; Version: 1.1
99; ; Keywords: languages
1010
@@ -118,8 +118,8 @@ the `:around' combinator. JS2-PARSER is the original XML parser."
118118 closing-tag) ; AST node with the tag closer
119119
120120
121- (put 'cl- struct-rjsx-node 'js2-visitor 'rjsx-node-visit )
122- (put 'cl- struct-rjsx-node 'js2-printer 'rjsx-node-print )
121+ (js2-- struct-put ' rjsx-node 'js2-visitor 'rjsx-node-visit )
122+ (js2-- struct-put ' rjsx-node 'js2-printer 'rjsx-node-print )
123123(defun rjsx-node-visit (ast callback )
124124 " Visit the `rjsx-node' children of AST, invoking CALLBACK on them."
125125 (js2-visit-ast (rjsx-node-name ast) callback)
@@ -179,8 +179,8 @@ Sets KID's parent to N."
179179 (:constructor make-rjsx-closing-tag (&key pos len name)))
180180 name) ; A rjsx-identifier or rjsx-member node
181181
182- (put 'cl- struct-rjsx-closing-tag 'js2-visitor 'rjsx-closing-tag-visit )
183- (put 'cl- struct-rjsx-closing-tag 'js2-printer 'rjsx-closing-tag-print )
182+ (js2-- struct-put ' rjsx-closing-tag 'js2-visitor 'rjsx-closing-tag-visit )
183+ (js2-- struct-put ' rjsx-closing-tag 'js2-printer 'rjsx-closing-tag-print )
184184
185185(defun rjsx-closing-tag-visit (ast callback )
186186 " Visit the `rjsx-closing-tag' children of AST, invoking CALLBACK on them."
@@ -206,8 +206,8 @@ Sets KID's parent to N."
206206 (namespace nil )
207207 name) ; js2-name-node
208208
209- (put 'cl- struct-rjsx-identifier 'js2-visitor 'js2-visit-none )
210- (put 'cl- struct-rjsx-identifier 'js2-printer 'rjsx-identifier-print )
209+ (js2-- struct-put ' rjsx-identifier 'js2-visitor 'js2-visit-none )
210+ (js2-- struct-put ' rjsx-identifier 'js2-printer 'rjsx-identifier-print )
211211
212212(defun rjsx-identifier-print (node indent-level )
213213 " Print the `rjsx-identifier' NODE at INDENT-LEVEL."
@@ -226,8 +226,8 @@ Sets KID's parent to N."
226226 dots-pos ; List of positions of each dot
227227 idents) ; List of rjsx-identifier nodes
228228
229- (put 'cl- struct-rjsx-member 'js2-visitor 'js2-visit-none )
230- (put 'cl- struct-rjsx-member 'js2-printer 'rjsx-member-print )
229+ (js2-- struct-put ' rjsx-member 'js2-visitor 'js2-visit-none )
230+ (js2-- struct-put ' rjsx-member 'js2-printer 'rjsx-member-print )
231231
232232(defun rjsx-member-print (node indent-level )
233233 " Print the `rjsx-member' NODE at INDENT-LEVEL."
@@ -245,8 +245,8 @@ Sets KID's parent to N."
245245 name ; a rjsx-identifier
246246 value) ; a js2-expression
247247
248- (put 'cl- struct-rjsx-attr 'js2-visitor 'rjsx-attr-visit )
249- (put 'cl- struct-rjsx-attr 'js2-printer 'rjsx-attr-print )
248+ (js2-- struct-put ' rjsx-attr 'js2-visitor 'rjsx-attr-visit )
249+ (js2-- struct-put ' rjsx-attr 'js2-printer 'rjsx-attr-print )
250250
251251(defun rjsx-attr-visit (ast callback )
252252 " Visit the `rjsx-attr' children of AST, invoking CALLBACK on them."
@@ -266,8 +266,8 @@ Sets KID's parent to N."
266266 (:constructor make-rjsx-spread (&key pos len expr)))
267267 expr) ; a js2-expression
268268
269- (put 'cl- struct-rjsx-spread 'js2-visitor 'rjsx-spread-visit )
270- (put 'cl- struct-rjsx-spread 'js2-printer 'rjsx-spread-print )
269+ (js2-- struct-put ' rjsx-spread 'js2-visitor 'rjsx-spread-visit )
270+ (js2-- struct-put ' rjsx-spread 'js2-printer 'rjsx-spread-print )
271271
272272(defun rjsx-spread-visit (ast callback )
273273 " Visit the `rjsx-spread' children of AST, invoking CALLBACK on them."
@@ -285,8 +285,8 @@ Sets KID's parent to N."
285285 (:constructor make-rjsx-wrapped-expr (&key pos len child)))
286286 child)
287287
288- (put 'cl- struct-rjsx-wrapped-expr 'js2-visitor 'rjsx-wrapped-expr-visit )
289- (put 'cl- struct-rjsx-wrapped-expr 'js2-printer 'rjsx-wrapped-expr-print )
288+ (js2-- struct-put ' rjsx-wrapped-expr 'js2-visitor 'rjsx-wrapped-expr-visit )
289+ (js2-- struct-put ' rjsx-wrapped-expr 'js2-printer 'rjsx-wrapped-expr-print )
290290
291291(defun rjsx-wrapped-expr-visit (ast callback )
292292 " Visit the `rjsx-wrapped-expr' child of AST, invoking CALLBACK on them."
@@ -306,8 +306,8 @@ Sets KID's parent to N."
306306 value)))
307307 value) ; a string
308308
309- (put 'cl- struct-rjsx-text 'js2-visitor 'js2-visit-none )
310- (put 'cl- struct-rjsx-text 'js2-printer 'rjsx-text-print )
309+ (js2-- struct-put ' rjsx-text 'js2-visitor 'js2-visit-none )
310+ (js2-- struct-put ' rjsx-text 'js2-printer 'rjsx-text-print )
311311
312312(defun rjsx-text-print (node _indent-level )
313313 " Print the `rjsx-text' NODE at INDENT-LEVEL."
0 commit comments