Skip to content

Cannot resolve references from within argument-parameter elements #202

@xterao

Description

@xterao

In the following example, you cannot navigate (“Go to Definition”) from the argument-parameter elements berry or name:

delete from berry where name = /* @isBlank(berry.name) */(1,2)

In SqlPsiReferenceProvider.kt, the provider logic treats the argument-parameter element as a child of the function-call element before checking its own children.
As a result, the berry and name elements inside the argument-parameter are incorrectly handled as part of the custom-function reference resolution and cannot resolve to their true definitions.

See:

getParentClassPsiType(element, SqlElFunctionCallExpr::class.java) != null ->

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfixBug fixes

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions