covers method

bool covers(
  1. String id,
  2. int offset
)

Returns true if this annotation covers the given global offset in the fragment identified by nodeId.

Implementation

bool covers(String id, int offset) {
  return id == nodeId && offset >= startOffset && offset < endOffset;
}