We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c68dc29 commit 27ec8dfCopy full SHA for 27ec8df
server/src/main/kotlin/org/javacs/kt/semantictokens/SemanticTokens.kt
@@ -58,8 +58,8 @@ private fun encodeTokens(tokens: Sequence<SemanticToken>): List<Int> {
58
private fun encodeType(type: SemanticTokenType): Int = type.ordinal
59
60
private fun encodeModifiers(modifiers: Set<SemanticTokenModifier>): Int = modifiers
61
- .map { 1 << it.ordinal }
62
- .fold(0, |)
+ .map { 1 shl it.ordinal }
+ .fold(0, Int::or)
63
64
private fun elementTokens(element: PsiElement): Sequence<SemanticToken> = element
65
.preOrderTraversal()
0 commit comments