tsv_ts 0.8.0

TypeScript/JS formatter, type stripper and acorn-compatible parser — part of tsv
Documentation
// TypeScript/JS lexer
//
// Tokenizes TypeScript source code into a stream of tokens.
// Supports TypeScript-specific syntax like type annotations.

mod comments;
mod core;
pub(crate) mod escapes;
pub(crate) mod ident;
mod token;

// Re-export public API
pub(crate) use core::{
    ES_LINE_TERMINATOR_LEADS, is_es_line_terminator, is_es_line_terminator_at, is_es_whitespace,
    unicode_escape_len_at,
};
pub(crate) use core::{Lexer, LexerCheckpoint};
pub(crate) use token::keyword_at;
pub(crate) use token::{KeywordKind, Token, TokenKind};