Details
-
Improvement
-
Resolution: Fixed
-
Normal
-
1.1.0
-
None
Description
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.