mbeckerle commented on a change in pull request #223: Daffodil 1444 schema comp
simple types
URL: https://github.com/apache/incubator-daffodil/pull/223#discussion_r289833087
##########
File path:
daffodil-core/src/main/scala/org/apache/daffodil/dsom/ModelGroup.scala
##########
@@ -250,8 +250,8 @@ abstract class ModelGroup(index: Int)
case eb: ElementBase => !eb.isRequiredInInfoset ||
!eb.isRepresented
}
if (lastIsOptional) {
- val (priorSibs, parent) = last.potentialPriorTerms
- (last +: priorSibs, parent.isDefined)
+ val (priorSibs, optPriorParent) = last.potentialPriorTerms
Review comment:
More like optPriorElementsIncludesThisParent - it's an indicator that one of
the things that can be immediately prior is the parent element, i..e., this
model group *could* be first child term of the parent.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services