MCPcopy
hub / github.com/postcss/postcss / init

Method init

lib/parser.js:374–383  ·  view source on GitHub ↗
(node, offset)

Source from the content-addressed store, hash-verified

372 }
373
374 init(node, offset) {
375 this.current.push(node)
376 node.source = {
377 input: this.input,
378 start: this.getPosition(offset)
379 }
380 node.raws.before = this.spaces
381 this.spaces = ''
382 if (node.type !== 'comment') this.semicolon = false
383 }
384
385 other(start) {
386 let end = false

Callers 5

atruleMethod · 0.95
commentMethod · 0.95
declMethod · 0.95
emptyRuleMethod · 0.95
ruleMethod · 0.95

Calls 2

getPositionMethod · 0.95
pushMethod · 0.80

Tested by

no test coverage detected