Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1199

Add support for passing effective statement dependencies

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Duplicate
    • None
    • None
    • parser
    • None

    Description

      YANGTOOLS-1197 and YANGTOOLS-1198 are all about storing a proper reference which is picked up by createEffective(Current) via namespaces.

      There are quite a few places which perform this kind of trick – having a lot of namespaces for essentially the same purpose.

      Consider extending EffectiveStmtCtx.Current with a key/value lookup mechanism, populated by (for example) StmtContext.Mutable.setEffectiveParameter(key, value).

      This would provide a well-defined blueprint how to solve this kind of a problem without open-coding it all over the place.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: