You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val element = parseAtPoint(cursor, asReference =true)
58
-
var cursorExpr = element?.findParent<KtExpression>() ?:return nullResult("Couldn't find expression at ${describePosition(cursor)} (only found $element)")
65
+
val cursorExpr = element?.findParent<KtExpression>() ?:return nullResult("Couldn't find expression at ${describePosition(cursor)} (only found $element)")
59
66
val surroundingExpr = expandForReference(cursor, cursorExpr)
60
67
val scope = scopeAtPoint(cursor) ?:return nullResult("Couldn't find scope at ${describePosition(cursor)}")
61
68
val context = bindingContextOf(surroundingExpr, scope)
62
69
LOG.info("Hovering {}", surroundingExpr)
63
70
return referenceFromContext(cursor, context)
64
71
}
65
72
73
+
/**
74
+
* Looks for a reference expression at the given cursor.
75
+
* This method is similar to [referenceAtPoint], but the latter fails to find declarations for JDK symbols.
76
+
* This method should not be used for anything other than finding definitions (at least for now).
0 commit comments