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

x/ts_morph/ts_morph.d.ts>TextSpan

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class TextSpan
import { TextSpan } from "https://deno.land/x/ts_morph@16.0.0/ts_morph.d.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.