Fix bug where count overrides didn't effect ComputeSize
authorFraser Waters <frassle@gmail.com>
Thu, 5 Oct 2017 14:32:39 +0000 (15:32 +0100)
committerFraser Waters <frassle@gmail.com>
Thu, 5 Oct 2017 14:32:40 +0000 (15:32 +0100)
commit386d4e6a1930c1e76693bd7240aeeeeaf1db612c
tree29c16cc222182a48846c4bf77c458a0d443396ed
parent8ed1e20a7a3b534d13c6f032126b4d3d08391f73
Fix bug where count overrides didn't effect ComputeSize

ComputeSize and ElementCount should match each other (and they do when
read direct from XML spec files). However when using the override file to
change count only ElementCount was effected. This is now fixed so that
ComputeSize is set and also so that ElementCount gets reset to 0 if the
count value isn't an integer.
src/Generator.Bind/FuncProcessor.cs