ListItemCache
โบ parent
ListItemCache.parent property
Line number of the parent list item (position.start.line). If this item has no parent (e.g. itโs a root level list), then this value is the negative of the line number of the first list item (start of the list).
Can be used to deduce which list items belongs to the same group (item1.parent = item2.parent). Can be used to reconstruct hierarchy information (parentItem.position.start.line = childItem.parent).
Signature:
parent: number;