-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove isPresent
check when choosing whether to create a ListNode
#15
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You removed too much -- only isPresent
check should gone (and also you should change how to access to the array items spans is implemented, because value instance will have not entries in arrStart
/ arrEnd
). Currently you replaced local span
variable by this.span
field (defined in super class ChunkNode
).
I see what you mean, it was more complicated than I thought. I put the local variable |
I think that you need to add a new |
If we added |
Maybe. Need to trial and see |
I pushed the test which I originally used to find this issue. The KSY file: https://github.com/pfroud/kaitai_struct_gui/blob/master/src/test/resources/ksy/basic.ksy The test class: https://github.com/pfroud/kaitai_struct_gui/blob/master/src/test/java/BasicTest.java The only tests that fail are for value instances where the value is a list. kaitai-struct-model produces a
it is already possible to distinguish sequential items from instance items, so we do not need to add an |
See #14