mbeckerle commented on a change in pull request #143: Support
dfdl:length="prefixed"
URL: https://github.com/apache/incubator-daffodil/pull/143#discussion_r239881862
##########
File path:
daffodil-core/src/main/scala/org/apache/daffodil/grammar/AlignedMixin.scala
##########
@@ -125,8 +126,8 @@ trait AlignedMixin extends GrammarMixin { self: Term =>
}
private lazy val priorAlignmentApprox: AlignmentMultipleOf = {
- if (this.isInstanceOf[Root]) {
- AlignmentMultipleOf(0) // root is aligned with anything
+ if (this.isInstanceOf[Root] || this.isInstanceOf[DetachedElementDecl]) {
+ AlignmentMultipleOf(0) // root and detached elements are aligned with
anything
Review comment:
Don't understand comment here. Why are detached elements always aligned?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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