Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db5afe8

Browse files
tamasvajkigfoo
authored andcommitted
Code quality improvement (fix warning)
1 parent 088e7ad commit db5afe8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

java/kotlin-extractor/src/main/kotlin/KotlinExtractorExtension.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,14 +504,14 @@ class KotlinFileExtractor(val logger: FileLogger, val tw: FileTrapWriter, val fi
504504

505505
val assignmentId = tw.getFreshIdLabel<DbAssignexpr>()
506506
val typeId = useType(initializer.expression.type)
507-
val locId = tw.getLocation(decl)
507+
val declLocId = tw.getLocation(decl)
508508
tw.writeExprs_assignexpr(assignmentId, typeId, blockId, idx++)
509-
tw.writeHasLocation(assignmentId, locId)
509+
tw.writeHasLocation(assignmentId, declLocId)
510510

511511
val lhsId = tw.getFreshIdLabel<DbVaraccess>()
512512
val lhsTypeId = useType(backingField.type)
513513
tw.writeExprs_varaccess(lhsId, lhsTypeId, assignmentId, 0)
514-
tw.writeHasLocation(lhsId, locId)
514+
tw.writeHasLocation(lhsId, declLocId)
515515
val vId = useProperty(decl) // todo: fix this. We should be assigning the field, and not the property
516516
tw.writeVariableBinding(lhsId, vId)
517517

0 commit comments

Comments
 (0)