I'm trying to understand the comment structure in ruamel.yaml library so that I can manipulate the comments correctly. What I don't get is why the comments in a .ca are inside a 4 items list? What are those other items and why they are always None?
For example, a comment attached to a sequence is like this with the first being CommentToken and the rest are Nones:
Comment(
start=None,
items={
2: [CommentToken('\n\n########### Foo ###########\n', line: 294, col: 0), None, None, None]
})
For a comment attached to a map, it seems to always be placed at the 3rd index?
Comment(
start=None,
items={
bar: [None, None, CommentToken('\n\n########## Bar ###########\n', line: 87, col: 0), None]
})
What's the difference between these and what's the significance of the order of their placements?