Skip to content

Commit

Permalink
fixup! fixup! Generate warning when node indexed like array
Browse files Browse the repository at this point in the history
- do check for both conditions of UpStepExpression

DAFFODIL-2773
  • Loading branch information
olabusayoT committed Oct 3, 2024
1 parent 87635fe commit 80cb301
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1069,10 +1069,10 @@ sealed abstract class UpStepExpression(s: String, predArg: Option[PredicateExpre
val areAllArrays = isLastStep && stepElements.forall {
_.isArray
} && targetType == NodeInfo.Array
checkIfNodeIndexedLikeArray()
if (areAllArrays) {
new CompiledDPath(UpMoveArray)
} else {
checkIfNodeIndexedLikeArray()
new CompiledDPath(UpMove)
}
}
Expand Down

0 comments on commit 80cb301

Please sign in to comment.