sucrase
Version:
Super-fast alternative to Babel for when you can target modern JS runtimes
8 lines (7 loc) • 332 B
TypeScript
import { Token } from './TokenProcessor';
/**
* Scan the tokens and assign a "context" to each one. For example, we need to
* know when a comma separates object literal fields vs array elements so that
* we can properly handle object shorthand inline.
*/
export default function augmentTokenContext(tokens: Array<Token>): void;