MCPcopy
hub / github.com/postcss/postcss / freeSemicolon

Method freeSemicolon

lib/parser.js:350–361  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

348 }
349
350 freeSemicolon(token) {
351 this.spaces += token[1]
352 if (this.current.nodes) {
353 let prev = this.current.nodes[this.current.nodes.length - 1]
354 if (prev && prev.type === 'rule' && !prev.raws.ownSemicolon) {
355 prev.raws.ownSemicolon = this.spaces
356 this.spaces = ''
357 prev.source.end = this.getPosition(token[2])
358 prev.source.end.offset += prev.raws.ownSemicolon.length
359 }
360 }
361 }
362
363 // Helpers
364

Callers 1

parseMethod · 0.95

Calls 1

getPositionMethod · 0.95

Tested by

no test coverage detected