We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44e85e9 commit abfb690Copy full SHA for abfb690
cpg-language-python/src/main/kotlin/de/fraunhofer/aisec/cpg/frontends/python/PythonLanguage.kt
@@ -241,11 +241,14 @@ class PythonLanguage :
241
ref,
242
setAccessValue = false,
243
)
244
- } else if (ref.astParent is InitializerListExpression) {
+ } else if (
245
+ ref.astParent is InitializerListExpression &&
246
+ ref.astParent?.astParent is AssignExpression
247
+ ) {
248
handleAssignmentToTarget(
249
ref.astParent!!.astParent as AssignExpression,
250
- setAccessValue = false,
251
+ setAccessValue = true,
252
253
} else if (ref.astParent is ForEachStatement) {
254
val handled = handleWriteToReference(ref)
0 commit comments