Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
map(mapping, span, offset, oldOffset) {
const { pos, deleted } = mapping.mapResult(span.from + oldOffset, this.side < 0 ? -1 : 1);
return deleted ? null : new Decoration(pos - offset, pos - offset, this);
}