mirror of
https://github.com/github/codeql.git
synced 2026-01-01 16:56:33 +01:00
This enables jump-to-definition and find-references in the VS Code extension, for Java source archives.
17 lines
478 B
Plaintext
17 lines
478 B
Plaintext
/**
|
|
* @name Find-references links
|
|
* @description Generates use-definition pairs that provide the data
|
|
* for find-references in the code viewer.
|
|
* @kind definitions
|
|
* @id java/ide-find-references
|
|
* @tags ide-contextual-queries/local-references
|
|
*/
|
|
|
|
import definitions
|
|
|
|
external string selectedSourceFile();
|
|
|
|
from Element e, Element def, string kind
|
|
where def = definitionOf(e, kind) and def.getFile() = getEncodedFile(selectedSourceFile())
|
|
select e, def, kind
|