Convert between absolute and relative positions when creating/reading comments. Relative positions stay valid even when text is inserted or deleted around them.
// WRONG: position 42 becomes invalid when text changes
constsavedPosition=42// CORRECT: relative position adapts to edits
constrelPos=Y.createRelativePositionFromTypeIndex(yText, 42)