list/list/utils/postfixers
module
Functions
findAndAddListHeadToMap( position, itemToListHead, visited ) → voidinternalmodule:list/list/utils/postfixers~findAndAddListHeadToMapBased on the provided positions looks for the list head and stores it in the provided map.
Parameters
position: ModelPositionThe 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 ) → booleaninternalmodule:list/list/utils/postfixers~fixListIndentsScans the list starting from the given list head element and fixes items' indentation.
Parameters
listNodes: Iterable<ListIteratorValue>The iterable of list nodes.
writer: ModelWriterThe model writer.
Returns
booleanWhether the model was modified.
fixListItemIds( listNodes, seenIds, writer ) → booleaninternalmodule:list/list/utils/postfixers~fixListItemIdsScans 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: ModelWriterThe model writer.
Returns
booleanWhether the model was modified.