MCPcopy
hub / github.com/postcss/postcss / findLastWithPosition

Function findLastWithPosition

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

Source from the content-addressed store, hash-verified

13}
14
15function findLastWithPosition(tokens) {
16 for (let i = tokens.length - 1; i >= 0; i--) {
17 let token = tokens[i]
18 let pos = token[3] || token[2]
19 if (pos) return pos
20 }
21}
22
23function tokensToString(tokens, from, to) {
24 let result = ''

Callers 1

declMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…