Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-694 Eliminate duplicate DescriptionEffectiveStatementImpl objects
  3. YANGTOOLS-743

Eliminate use of StatementContextBase from parser.spi.meta classes

    XMLWordPrintable

Details

    • Sub-task
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    Description

      Prerequisite.get() is used across several yang-parser-impl classes which utilize InferenceAction. In some places, the returned StmtContext needs to be downcasted to StatementContextBase in order to perform necessary operations with it later.
      It would be nice if the Prerequisite.get() method returned StatementContextBase right away so that we would not need to do the downcasting.

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              ifoltin Igor Foltin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: