Find-references links

Author: LGTM

import python
import analysis.DefinitionTracking

external string selectedSourceFile();

from NiceLocationExpr use, Definition defn, string kind
where
  defn = definitionOf(use, kind) and
  defn.getLocation().getFile() = getFileBySourceArchiveName(selectedSourceFile())
select use, defn, kind

Description

Generates use-definition pairs that provide the data for find-references in the code viewer.