parseColumnPositionsFromFile

fun parseColumnPositionsFromFile(fileContent: String, nodeLength: Int, nodeOffset: Int, startingLineNumber: Int, endingLineNumber: Int): Region?

The proper columns are computed for the given nodeOffset and its length

Parameters

fileContent

the text in the file, needed to see the whitespaces

nodeLength

Length of the node

nodeOffset

start position of the node as character index

endingLineNumber

line where the node should end