Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-696

Do not use DerivableSchemaNode

XMLWordPrintable

      DerivableSchemaNode.getOriginal() is used by mdsal-binding-runtime-api and mdsal-binding-generator to resolve original statement backwards along the instantiation axis.

      Since BindingRuntimeContext is driven by state from GeneratorReactor and that has the capacity to resolve statement -> generator relationships without DerivableSchemaNode (as demonstrated by MDSAL-694), we should be able to do our job there without relying on YANG parser giving us these hints.

      Analyze the code and its intent and remodel it so that callers of BindingRuntimeContext.originalNodeOf() have everything they need to operate reasonably efficiently (based, again, on their callsites which should be mostly in mdsal-binding-dom-codec).

      Exactly how GeneratorReactor achieves is not quite clear yet, but it probably be similar to what MDSAL-695 ends up doing.

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: