(a: Position, b: Position)
| 862 | } |
| 863 | |
| 864 | function isSamePosition(a: Position, b: Position): boolean { |
| 865 | return a.index === b.index && a.offset === b.offset; |
| 866 | } |
| 867 | |
| 868 | // Parse and validate segments from clipboard/drag data. Returns null if the data is not valid |
| 869 | // JSON or does not match the expected shape, so malformed or untrusted data is ignored rather |
no outgoing calls
no test coverage detected