MCPcopy
hub / github.com/postcss/postcss / fromLineAndColumn

Method fromLineAndColumn

lib/input.js:164–168  ·  view source on GitHub ↗
(line, column)

Source from the content-addressed store, hash-verified

162 }
163
164 fromLineAndColumn(line, column) {
165 let lineToIndex = getLineToIndex(this)
166 let index = lineToIndex[line - 1]
167 return index + column - 1
168 }
169
170 fromOffset(offset) {
171 let lineToIndex = getLineToIndex(this)

Callers 2

errorMethod · 0.95
input.test.tsFile · 0.80

Calls 1

getLineToIndexFunction · 0.85

Tested by

no test coverage detected