File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/kotlin/org/javacs/kt Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
package org.javacs.kt
2
2
3
- import org.eclipse.lsp4j.MarkedString
4
3
import com.intellij.openapi.util.TextRange
4
+ import org.eclipse.lsp4j.MarkedString
5
5
import org.javacs.kt.position.changedRegion
6
6
import org.javacs.kt.position.position
7
7
import org.javacs.kt.util.findParent
@@ -55,7 +55,7 @@ class CompiledFile(
55
55
val scope = scopeAtPoint(cursor) ? : return nullResult(" Couldn't find scope at ${describePosition(cursor)} " )
56
56
val context = bindingContextOf(surroundingExpr, scope)
57
57
LOG .info(" Hovering {}" , surroundingExpr)
58
- return referenceFromContext(cursor, context) ? : return null
58
+ return referenceFromContext(cursor, context)
59
59
}
60
60
61
61
private fun referenceFromContext (cursor : Int , context : BindingContext ): Pair <KtExpression , DeclarationDescriptor >? {
You can’t perform that action at this time.
0 commit comments