list/list/utils/postfixers
module
Functions
-
findAndAddListHeadToMap( position, itemToListHead, visited ) → void
internalmodule:list/list/utils/postfixers~findAndAddListHeadToMap
Based on the provided positions looks for the list head and stores it in the provided map.
Parameters
position : ModelPosition
The search starting position.
itemToListHead : Set<ListElement>
The map from list item element to the list head element.
visited : Set<ModelElement>
A set of elements that were already visited.
Returns
void
-
fixListIndents( listNodes, writer ) → boolean
internalmodule:list/list/utils/postfixers~fixListIndents
Scans the list starting from the given list head element and fixes items' indentation.
Parameters
listNodes : Iterable<ListIteratorValue>
The iterable of list nodes.
writer : ModelWriter
The model writer.
Returns
boolean
Whether the model was modified.
-
fixListItemIds( listNodes, seenIds, writer ) → boolean
internalmodule:list/list/utils/postfixers~fixListItemIds
Scans the list starting from the given list head element and fixes items' types.
Parameters
listNodes : Iterable<ListIteratorValue>
The iterable of list nodes.
seenIds : Set<string>
The set of already known IDs.
writer : ModelWriter
The model writer.
Returns
boolean
Whether the model was modified.