Package io.deephaven.web.shared.ide.lsp
Class DocumentRange
java.lang.Object
io.deephaven.web.shared.ide.lsp.DocumentRange
- All Implemented Interfaces:
Serializable
@JsType(namespace="dh.lsp",
name="Range")
public class DocumentRange
extends Object
implements Serializable
A range within a text document.
This is a JS-exposed model type (dh.lsp.Range) that closely follows the Language Server Protocol range shape.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDocumentRange(DocumentRange fixed) DocumentRange(Position start, Position end) DocumentRange(jsinterop.base.JsPropertyMap<Object> source) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanstatic intgetOffsetFromPosition(String document, Position position) static PositiongetPositionFromOffset(String document, int offset) inthashCode()booleanChecks whether the provided range is contained within this range.static DocumentRangerangeFromSource(String source, int start, int length) toString()
-
Field Details
-
start
The start position of the range. -
end
The end position of the range.
-
-
Constructor Details
-
DocumentRange
public DocumentRange() -
DocumentRange
-
-
Method Details