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