Liking cljdoc? Tell your friends :D

dots.typescript.server.protocol.code-edit

Object found in response messages defining an editing instruction for a span of text in source code. The effect of this instruction is to replace the text starting at start and ending one character before end with newText. For an insertion, the text span is empty. For a deletion, newText is empty.

Object found in response messages defining an editing
instruction for a span of text in source code.  The effect of
this instruction is to replace the text starting at start and
ending one character before end with newText. For an insertion,
the text span is empty.  For a deletion, newText is empty.
raw docstring

endcljs

(end code-edit)

One character past last character of the text span to edit.

Returns: Location

One character past last character of the text span to edit.

**Returns:** `Location`
sourceraw docstring

new-textcljs

(new-text code-edit)

Replace the span defined above with this string (may be the empty string).

Returns: string

Replace the span defined above with this string (may be
the empty string).

**Returns:** `string`
sourceraw docstring

set-end!cljs

(set-end! code-edit value)

One character past last character of the text span to edit.

One character past last character of the text span to edit.
sourceraw docstring

set-new-text!cljs

(set-new-text! code-edit value)

Replace the span defined above with this string (may be the empty string).

Replace the span defined above with this string (may be
the empty string).
sourceraw docstring

set-start!cljs

(set-start! code-edit value)

First character of the text span to edit.

First character of the text span to edit.
sourceraw docstring

startcljs

(start code-edit)

First character of the text span to edit.

Returns: Location

First character of the text span to edit.

**Returns:** `Location`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close