@@ -134,10 +134,10 @@ function one(state, node) {
134
134
}
135
135
136
136
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 )
139
139
const start = loc . toPoint ( 0 )
140
- const end = loc . toPoint ( doc . length )
140
+ const end = loc . toPoint ( document . length )
141
141
// Always defined as we give valid input.
142
142
assert ( start , 'expected `start`' )
143
143
assert ( end , 'expected `end`' )
@@ -212,20 +212,20 @@ function element(state, node) {
212
212
// Props.
213
213
let index = - 1
214
214
/** @type {Record<string, string> } */
215
- const props = { }
215
+ const properties = { }
216
216
217
217
while ( ++ index < node . attrs . length ) {
218
218
const attribute = node . attrs [ index ]
219
219
const name =
220
220
( attribute . prefix ? attribute . prefix + ':' : '' ) + attribute . name
221
221
if ( ! own . call ( proto , name ) ) {
222
- props [ name ] = attribute . value
222
+ properties [ name ] = attribute . value
223
223
}
224
224
}
225
225
226
226
// 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 ) )
229
229
patch ( state , node , result )
230
230
231
231
// Switch content.
@@ -305,14 +305,14 @@ function createLocation(state, node, location) {
305
305
306
306
if ( state . verbose ) {
307
307
/** @type {Record<string, Position | undefined> } */
308
- const props = { }
308
+ const properties = { }
309
309
/** @type {string } */
310
310
let key
311
311
312
312
if ( location . attrs ) {
313
313
for ( key in location . attrs ) {
314
314
if ( own . call ( location . attrs , key ) ) {
315
- props [ find ( state . schema , key ) . property ] = position (
315
+ properties [ find ( state . schema , key ) . property ] = position (
316
316
location . attrs [ key ]
317
317
)
318
318
}
@@ -325,7 +325,7 @@ function createLocation(state, node, location) {
325
325
/** @type {ElementData['position'] } */
326
326
const data = { opening}
327
327
if ( closing ) data . closing = closing
328
- data . properties = props
328
+ data . properties = properties
329
329
330
330
node . data = { position : data }
331
331
}
0 commit comments