-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure isNilled state is always correct
In some cases, it is possible for the InfosetWalker to walk into a nillable complex element that is not "finished", but has children and so is known to be not nilled. Even though we know it isn't nilled, we don't ever set the isNilled state--we only do that for nilled elements. This means that if an InfosetOutputter calls isNilled, then it would fail since that requires the state to be set. To resolve this, this completely removes the concept of isNilledSet which avoids the problem. isNilled now defaults to false and is set to true only when an element is determined to be nil by the NilOrParserValue combinator. Although there is a brief period of time where an infoset element's isNilled state is not known (i.e. after an element is initialized but before the NilOrParserValue combinator determines and sets isNilled), there is no way for anything to access this state during this time. This also means isNilled is always correct by the time the InfosetWalker walks into a nillable element, so isNilled can be safely used and is always accurate. This also removes the concept of maybeIsNilled, which was just a workaround to handle the fact that non-nillable elements never set nilled state. Now everything can use reference isNilled since it is always accurate by the time a parser might access it. DAFFODIL-2962
- Loading branch information
1 parent
48131bf
commit 9293589
Showing
14 changed files
with
317 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.