MCPcopy
hub / github.com/postcss/postcss / end

Method end

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

Source from the content-addressed store, hash-verified

321 }
322
323 end(token) {
324 if (this.current.nodes && this.current.nodes.length) {
325 this.current.raws.semicolon = this.semicolon
326 }
327 this.semicolon = false
328
329 this.current.raws.after = (this.current.raws.after || '') + this.spaces
330 this.spaces = ''
331
332 if (this.current.parent) {
333 this.current.source.end = this.getPosition(token[2])
334 this.current.source.end.offset++
335 this.current = this.current.parent
336 } else {
337 this.unexpectedClose(token)
338 }
339 }
340
341 endFile() {
342 if (this.current.parent) this.unclosedBlock()

Callers 2

atruleMethod · 0.95
parseMethod · 0.95

Calls 2

getPositionMethod · 0.95
unexpectedCloseMethod · 0.95

Tested by

no test coverage detected