Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-1331

Duplicated code - should be consolidated.

XMLWordPrintableJSON

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.0.0
    • 1.1.0
    • Middle "End"
    • None

      There are two definitions of couldBeNext.

      One is in ModelGroup.scala, the other in LocalElementBase.scala

      The look identical, but even if they are slighly different the duplicated code is too much and needs to be factored out.

      I believe there are other near duplicates like this in the couldBeXYZZY because there are versions in ModelGroup and in ElementBase (or other Element-related).

      Many of these could be hoisted up to the Term class where they can be common to both elements and model groups.

              jchab Jessie Chab
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: