Skip to main content
Module

x/ts_morph/mod.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@15.1.0/mod.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.