UNPKG

as2dts

Version:

A command line tool that converts ActionScript 3 classes and interfaces to TypeScript definitions (d.ts files)

14 lines (13 loc) 324 B
"use strict"; class Token { constructor(text, index, isNumeric = false, isXML = false) { this.text = text; this.index = index; this.isNumeric = isNumeric; this.isXML = isXML; } get end() { return this.index + this.text.length; } } module.exports = Token;