wooorm/textom

Should add Location and Position to “Text”

Closed this issue · 1 comments

partial interface Text {
    location: Location;
}

Where Location is represented by:

interface Location {
    start: Position;
    end: Position;
}

And Position by:

interface Position {
    line: unsigned long >= 1;
    column: unsigned long >= 1;
} 

How this works for insert(parent, item, child), and remove(node) without getting too slow i’m not sure about yet.

Note: Issue @ parse-latin.

Hmm. Not going to happen. It seems superfluous as all new lines are included in the tree itself; making it trivial to detect. Maybe in the future.