Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno2node/src/deps.deno.ts>TextSpan

Compile your Deno project to run on Node.js.
Go to Latest
class TextSpan
import { TextSpan } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";

Represents a span of text.

Constructors

new
private
TextSpan()

Properties

readonly
compilerObject: ts.TextSpan

Gets the compiler text span.

Methods

getEnd(): number

Gets the start + length.

getLength(): number

Gets the length.

getStart(): number

Gets the start.