File tree Expand file tree Collapse file tree 3 files changed +3
-12
lines changed
src/main/kotlin/org/domaframework/doma/intellij/reference Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,6 @@ import org.domaframework.doma.intellij.common.psi.PsiStaticElement
2929class SqlElClassExprReference (
3030 element : PsiElement ,
3131) : PsiReferenceBase<PsiElement>(element) {
32- init {
33- println (" SqlElClassExprReference initialized with element: ${element.text} " )
34- }
35-
3632 private val cachedResolve: CachedValue <PsiElement ?> by lazy {
3733 CachedValuesManager .getManager(element.project).createCachedValue {
3834 val result = doResolve()
Original file line number Diff line number Diff line change @@ -45,10 +45,6 @@ import org.domaframework.doma.intellij.psi.SqlTypes
4545class SqlElIdExprReference (
4646 element : PsiElement ,
4747) : PsiReferenceBase<PsiElement>(element) {
48- init {
49- println (" SqlElIdExprReference initialized with element: ${element.text} " )
50- }
51-
5248 private val cachedResolve: CachedValue <PsiElement ?> by lazy {
5349 CachedValuesManager .getManager(element.project).createCachedValue {
5450 val result = doResolve()
@@ -79,6 +75,9 @@ class SqlElIdExprReference(
7975 if (targetElement.isEmpty()) return null
8076
8177 val topElm = targetElement.firstOrNull() as ? PsiElement ? : return null
78+
79+ if (topElm.prevSibling.elementType == SqlTypes .AT_SIGN ) return null
80+
8281 findInForDirectiveBlock(topElm)
8382 ?.let {
8483 PluginLoggerUtil .countLogging(
Original file line number Diff line number Diff line change @@ -33,10 +33,6 @@ import org.domaframework.doma.intellij.psi.SqlElStaticFieldAccessExpr
3333class SqlElStaticFieldReference (
3434 element : PsiElement ,
3535) : PsiReferenceBase<PsiElement>(element) {
36- init {
37- println (" SqlElStaticFieldReference initialized with element: ${element.text} " )
38- }
39-
4036 private val cachedResolve: CachedValue <PsiElement ?> by lazy {
4137 CachedValuesManager .getManager(element.project).createCachedValue {
4238 val result = doResolve()
You can’t perform that action at this time.
0 commit comments