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

Refactor IfFeaturePredicateVisitor

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 9.0.0
    • parser

    Description

      IfFeaturePredicateVisitor is the only class requiring ANTLR's visitors to be generated. Refactor it to work purely on IfFeatureExpressionParser so that we can ditch visitors. This needs to work similarly as our other parsers work: by closely examining the shape of the parse tree, making assertions on what is valid and what not and having a nice method for each type of node encountered.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: