mbeckerle commented on a change in pull request #214: Sequences and Separators
Refactoring and Rewrite
URL: https://github.com/apache/incubator-daffodil/pull/214#discussion_r285687800
##########
File path:
daffodil-core/src/main/scala/org/apache/daffodil/dsom/ElementBase.scala
##########
@@ -748,15 +745,22 @@ trait ElementBase
final lazy val isFixedLength = {
(lengthKind =:= LengthKind.Explicit && lengthEv.isConstant) ||
isImplicitLengthString
- // TODO: there are lots of other cases where things are fixed length
+ // FIXME: there are lots of other cases where things are fixed length
// e.g., implicit length hexBinary uses maxLength for length in bytes
// e.g., implicit length fixed-precision binary numbers (byte, short, int,
long and unsigned thereof)
// In general the things in this file about fixed length seem to miss
hexBinary.
+ // Also, things like packed and zoned decimal are usually fixed length,
sometimes delimited.
}
final def isImplicitLengthString = isSimpleType && primType =:=
PrimType.String && lengthKind =:= LengthKind.Implicit
final lazy val fixedLengthValue: Long = {
+ // FIXME: this calculation only good for string type.
Review comment:
Parking these cleanups in ticket DAFFODIL-2131
----------------------------------------------------------------
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