Skip to content

Commit 41a948b

Browse files
committed
Include bind variables in function parameters in the definition source check as well
1 parent 775c435 commit 41a948b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/main/kotlin/org/domaframework/doma/intellij/inspection/sql/inspector/SqlBindVariableValidInspector.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ import org.domaframework.doma.intellij.common.psi.PsiParentClass
4343
import org.domaframework.doma.intellij.extension.expr.accessElements
4444
import org.domaframework.doma.intellij.extension.expr.fqdn
4545
import org.domaframework.doma.intellij.extension.getJavaClazz
46-
import org.domaframework.doma.intellij.extension.psi.findNodeParent
4746
import org.domaframework.doma.intellij.extension.psi.getDomaAnnotationType
4847
import org.domaframework.doma.intellij.extension.psi.getForItem
4948
import org.domaframework.doma.intellij.extension.psi.getIterableClazz
@@ -164,9 +163,6 @@ class SqlBindVariableValidInspector : LocalInspectionTool() {
164163
// Exclude fixed Literal
165164
if (isLiteralOrStatic(element)) return
166165

167-
// TODO Check function parameters in the same way as bind variables.
168-
if (element.findNodeParent(SqlTypes.EL_PARAMETERS) != null) return
169-
170166
// For static property references, match against properties in the class definition
171167
if (element.parent is SqlElStaticFieldAccessExpr) {
172168
checkStaticFieldAndMethodAccess(

0 commit comments

Comments
 (0)