mercedes-benz / odxtools

odxtools is a collection of utilities to interact with the diagnostic functionality of automotive electronic control units using python
MIT License
171 stars 70 forks source link

introduce short name reference resolution contexts #313

Closed andlaus closed 3 months ago

andlaus commented 3 months ago

this patch emerged from a discussion in #312. It is quite large but also pretty simple: instead of passing the relevant containers directly to the _resolve_snref() methods, we now put every object that is possibly required for short name resolution into a new SnRefContext object. Those parts of the context which are not applicable are simply None and the respective _resolve_snref() methods are responsible for ensuring that the parts of the context which they require are present...

Andreas Lauser <andreas.lauser@mercedes-benz.com>, on behalf of MBition GmbH. Provider Information