Skip to content

Commit 71cb709

Browse files
committed
Add logging for static property reference in SqlElStaticFieldReference
1 parent e066a6c commit 71cb709

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/kotlin/org/domaframework/doma/intellij/reference/SqlElStaticFieldReference.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package org.domaframework.doma.intellij.reference
1818
import com.intellij.psi.PsiElement
1919
import com.intellij.psi.PsiFile
2020
import com.intellij.psi.util.PsiTreeUtil
21+
import org.domaframework.doma.intellij.common.PluginLoggerUtil
2122
import org.domaframework.doma.intellij.common.sql.validator.SqlElStaticFieldAccessorChildElementValidator
2223
import org.domaframework.doma.intellij.common.sql.validator.result.ValidationCompleteResult
2324
import org.domaframework.doma.intellij.psi.SqlElStaticFieldAccessExpr
@@ -53,6 +54,12 @@ class SqlElStaticFieldReference(
5354
if (fieldAccessLastParentResult is ValidationCompleteResult) {
5455
val searchText = element.text ?: ""
5556
val parent = fieldAccessLastParentResult.parentClass
57+
PluginLoggerUtil.countLogging(
58+
this::class.java.simpleName,
59+
"ReferenceStaticProperty",
60+
"Reference",
61+
startTime,
62+
)
5663
return parent.findField(searchText) ?: parent.findMethod(searchText)
5764
}
5865

0 commit comments

Comments
 (0)