MCPcopy
hub / github.com/postcss/postcss / spacesAndCommentsFromEnd

Method spacesAndCommentsFromEnd

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

Source from the content-addressed store, hash-verified

534 }
535
536 spacesAndCommentsFromEnd(tokens) {
537 let lastTokenType
538 let spaces = ''
539 while (tokens.length) {
540 lastTokenType = tokens[tokens.length - 1][0]
541 if (lastTokenType !== 'space' && lastTokenType !== 'comment') break
542 spaces = tokens.pop()[1] + spaces
543 }
544 return spaces
545 }
546
547 // Errors
548

Callers 2

atruleMethod · 0.95
ruleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected