@@ -134,10 +134,10 @@ function one(state, node) {
134134 }
135135
136136 if ( state . file && state . location ) {
137- const doc = String ( state . file )
138- const loc = location ( doc )
137+ const document = String ( state . file )
138+ const loc = location ( document )
139139 const start = loc . toPoint ( 0 )
140- const end = loc . toPoint ( doc . length )
140+ const end = loc . toPoint ( document . length )
141141 // Always defined as we give valid input.
142142 assert ( start , 'expected `start`' )
143143 assert ( end , 'expected `end`' )
@@ -212,20 +212,20 @@ function element(state, node) {
212212 // Props.
213213 let index = - 1
214214 /** @type {Record<string, string> } */
215- const props = { }
215+ const properties = { }
216216
217217 while ( ++ index < node . attrs . length ) {
218218 const attribute = node . attrs [ index ]
219219 const name =
220220 ( attribute . prefix ? attribute . prefix + ':' : '' ) + attribute . name
221221 if ( ! own . call ( proto , name ) ) {
222- props [ name ] = attribute . value
222+ properties [ name ] = attribute . value
223223 }
224224 }
225225
226226 // Build.
227- const fn = state . schema . space === 'svg' ? s : h
228- const result = fn ( node . tagName , props , all ( state , node . childNodes ) )
227+ const x = state . schema . space === 'svg' ? s : h
228+ const result = x ( node . tagName , properties , all ( state , node . childNodes ) )
229229 patch ( state , node , result )
230230
231231 // Switch content.
@@ -305,14 +305,14 @@ function createLocation(state, node, location) {
305305
306306 if ( state . verbose ) {
307307 /** @type {Record<string, Position | undefined> } */
308- const props = { }
308+ const properties = { }
309309 /** @type {string } */
310310 let key
311311
312312 if ( location . attrs ) {
313313 for ( key in location . attrs ) {
314314 if ( own . call ( location . attrs , key ) ) {
315- props [ find ( state . schema , key ) . property ] = position (
315+ properties [ find ( state . schema , key ) . property ] = position (
316316 location . attrs [ key ]
317317 )
318318 }
@@ -325,7 +325,7 @@ function createLocation(state, node, location) {
325325 /** @type {ElementData['position'] } */
326326 const data = { opening}
327327 if ( closing ) data . closing = closing
328- data . properties = props
328+ data . properties = properties
329329
330330 node . data = { position : data }
331331 }
0 commit comments