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://dotland.deno.dev/x/ts_morph@18.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.