swc_ecma_fast_parser

Module token

source
Expand description

High-performance token implementation

This module provides token types and related functionality for ECMAScript/TypeScript parser. The implementation is optimized for both memory efficiency and processing speed.

Structs§

  • Performance-optimized token structure Optimized for memory layout and data access patterns

Enums§

  • Performance-optimized token type Represented as u8 to minimize memory usage
  • Token value enum optimized for efficient representation

Functions§

  • Convert a keyword string to TokenType Utilizes the first byte and word length to quickly locate the keyword in the table Optimized with fast-path checks for common keywords