ARXML: change the approach to references
ARXML: change the approach to references

Contrary to what I believed in the past, not only packages can contain
sub-elements that can be referenced. We thus change the approach to
ARXML references to precompute them by inspecting the whole file and
simply look them up in the dictionary directly. The approach has the
disadvantage that it requires more memory, but it has the advantages
that references now work for arbitrary nestings of XML elements and
that it is more performant.

Signed-off-by: Andreas Lauser <429495c8e182c230dc2e2e45b7683abab22a535c@mbition.io>
Signed-off-by: Oliver Kopp <145f9cd3bd4b8f6f87f6a0c88db241a6cbaa88bd@mbition.io>

cantools/cantools,eerimoq/cantools