matchCommentToNode

fun matchCommentToNode(comment: String, location: Region, tu: TranslationUnitDeclaration, artifactLocation: PhysicalLocation.ArtifactLocation? = null)

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.