[ty] Added support for "go to definition" for attribute accesses and keyword arguments by UnboundVariable · Pull Request #19417 · astral-sh/ruff (original) (raw)
Hmm, this seems a bit unfortunate that we need to go and search the covering node again. Would it make sense to instead store the CallExpr in KeywordArgument alongside the keyword?
Getting the function there should be cheaper because CoveringNode allows upward traversal whereas calling covering_node requires an AST traversal