MCPcopy
hub / github.com/postcss/postcss / rule

Method rule

lib/parser.js:525–534  ·  view source on GitHub ↗
(tokens)

Source from the content-addressed store, hash-verified

523 }
524
525 rule(tokens) {
526 tokens.pop()
527
528 let node = new Rule()
529 this.init(node, tokens[0][2])
530
531 node.raws.between = this.spacesAndCommentsFromEnd(tokens)
532 this.raw(node, 'selector', tokens)
533 this.current = node
534 }
535
536 spacesAndCommentsFromEnd(tokens) {
537 let lastTokenType

Callers 2

otherMethod · 0.95
postcss.test.tsFile · 0.45

Calls 3

initMethod · 0.95
rawMethod · 0.95

Tested by

no test coverage detected