ts-simple-ast
Version:
TypeScript compiler wrapper for AST navigation and code generation.
31 lines (29 loc) • 630 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Represents a span of text.
*/
class TextSpan {
/** @internal */
constructor(compilerObject) {
this._compilerObject = compilerObject;
}
/** Gets the compiler text span. */
get compilerObject() {
return this._compilerObject;
}
/**
* Gets the start.
*/
getStart() {
return this.compilerObject.start;
}
/**
* Gets the length.
*/
getLength() {
return this.compilerObject.length;
}
}
exports.TextSpan = TextSpan;
//# sourceMappingURL=TextSpan.js.map