MCPcopy
hub / github.com/postcss/postcss / getPosition

Method getPosition

lib/parser.js:365–372  ·  view source on GitHub ↗
(offset)

Source from the content-addressed store, hash-verified

363 // Helpers
364
365 getPosition(offset) {
366 let pos = this.input.fromOffset(offset)
367 return {
368 column: pos.col,
369 line: pos.line,
370 offset
371 }
372 }
373
374 init(node, offset) {
375 this.current.push(node)

Callers 7

atruleMethod · 0.95
commentMethod · 0.95
declMethod · 0.95
endMethod · 0.95
endFileMethod · 0.95
freeSemicolonMethod · 0.95
initMethod · 0.95

Calls 1

fromOffsetMethod · 0.80

Tested by

no test coverage detected