Companion

object Companion

Functions

Link copied to clipboard

This function matches a comment to the closest node according to a heuristic: Comments are assigned to the closest successor node on their ast hierarchy level. Only Exception, if they don't have a successor starting in the same line but they have a predecessor in the same line, the comment is matched to that closest predecessor.

Link copied to clipboard
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