Skip to content

Java, Javascript, Csharp: Add jump-to-definition queries#3431

Merged
jcreedcmu merged 5 commits into
github:masterfrom
jcreedcmu:jcreed/jump-to-def-langs
May 12, 2020
Merged

Java, Javascript, Csharp: Add jump-to-definition queries#3431
jcreedcmu merged 5 commits into
github:masterfrom
jcreedcmu:jcreed/jump-to-def-langs

Conversation

@jcreedcmu

@jcreedcmu jcreedcmu commented May 7, 2020

Copy link
Copy Markdown
Contributor

This is the same as #3308 for these languages. Python was already done by #3405. Go was already done by github/codeql-go#119.

jcreedcmu added 2 commits May 7, 2020 12:44
This enables jump-to-definition and find-references in the VS Code
extension, for javascript source archives.
This enables jump-to-definition and find-references in the VS Code
extension, for Java source archives.
@jcreedcmu jcreedcmu requested review from a team as code owners May 7, 2020 16:46
@jcreedcmu jcreedcmu force-pushed the jcreed/jump-to-def-langs branch from 867ba24 to f55f7ce Compare May 7, 2020 17:54
This enables jump-to-definition and find-references in the VS Code
extension, for C# source archives.
@jcreedcmu jcreedcmu force-pushed the jcreed/jump-to-def-langs branch from f55f7ce to beccdce Compare May 8, 2020 11:31
hvitved
hvitved previously approved these changes May 11, 2020

@hvitved hvitved left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C# changes LGTM (I haven't tested it though).

aschackmull
aschackmull previously approved these changes May 11, 2020

@aschackmull aschackmull left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Java changes LGTM.

@aschackmull

Copy link
Copy Markdown
Contributor

I guess actually with the move of the code from a .ql to .qll context we'll want to mark as much as possible private (that should also fix the failing PR check).

asgerf
asgerf previously approved these changes May 11, 2020

@asgerf asgerf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't figure out how to test it but LGTM

Only expose definition-use relation itself, and getEncodedFile.
@jcreedcmu jcreedcmu dismissed stale reviews from asgerf, aschackmull, and hvitved via 66da91f May 11, 2020 19:15
aschackmull
aschackmull previously approved these changes May 12, 2020
Comment thread csharp/ql/src/definitions.qll Outdated
import csharp

/** An element with an associated definition. */
abstract private class Use extends @type_mention_parent {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Must be non-private.

@jcreedcmu jcreedcmu merged commit 3c233c7 into github:master May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants