Skip to content

Commit 549d1dd

Browse files
committed
Replaced vName . aVertex with anVertexName few places
1 parent 58a1546 commit 549d1dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src-extra/transformation/JbeamEdit/Transformation.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ addPrefixComments SupportTree trees = trees
7171
addPrefixComments _ trees = bool trees (fmap addToAnnotatedVertex trees) (length trees > 1)
7272
where
7373
addToAnnotatedVertex (VertexTree [] namedVertexGroups) =
74-
let commentName = dropIndex . vName . aVertex . NE.head $ namedVertexGroups
74+
let commentName = dropIndex . anVertexName . NE.head $ namedVertexGroups
7575
newComment = InternalComment ("prefix group " <> commentName) False NextNode
7676
in VertexTree [newComment] namedVertexGroups
7777
addToAnnotatedVertex (VertexTree comments namedVertexGroups) = VertexTree comments namedVertexGroups
@@ -107,7 +107,7 @@ groupByPrefix origTree =
107107
OMap1.fromNEList
108108
. sortByKeyOrderNE origTree
109109
. NE.map (prefixForVertexKey origTree)
110-
. NE.groupWith1 (dropIndex . vName . aVertex)
110+
. NE.groupWith1 (dropIndex . anVertexName)
111111

112112
commentsExists :: Maybe (OMap1 VertexTreeKey VertexTree) -> Bool
113113
commentsExists = any (notNull . tComments . OMap1.head)
@@ -328,7 +328,7 @@ compareAV thr treeType vertex1 vertex2 =
328328
let supportNameCompare =
329329
bool
330330
EQ
331-
(on compare (dropIndex . vName . aVertex) vertex1 vertex2)
331+
(on compare (dropIndex . anVertexName) vertex1 vertex2)
332332
(treeType == SupportTree)
333333
y1 = vY . aVertex $ vertex1
334334
y2 = vY . aVertex $ vertex2

0 commit comments

Comments
 (0)