Jump-to-definition links

Author: LGTM

import go
import ideContextual

external string selectedSourceFile();

from Ident def, Ident use, Entity e
where
  use.uses(e) and
  def.declares(e) and
  use.getFile() = getFileBySourceArchiveName(selectedSourceFile())
select use, def, "V"

Description

Generates use-definition pairs that provide the data for jump-to-definition in the code viewer.