Created
October 25, 2017 19:32
-
-
Save suhininalex/5ef7fc08e6351dfd7cb3c426ad78dc4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun process(content: FileContent): Map<HashValue, TextRanges> { | |
Logger.log("[Indexing] ${content.psiFile.name}") | |
return content.psiFile | |
.findIndexableElements() | |
.flatMap { it.createHashFragments(content.file) } | |
.groupBy { it.hash } | |
.mapValues { (_, values) -> values.map { it.range } } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment