UNPKG

sucrase

Version:

Super-fast alternative to Babel for when you can target modern JS runtimes

8 lines (7 loc) 361 B
import { Token } from "../sucrase-babylon/tokenizer"; import { Scope } from "../sucrase-babylon/tokenizer/state"; /** * Traverse the given tokens and modify them if necessary to indicate that some names shadow global * variables. */ export default function identifyShadowedGlobals(tokens: Array<Token>, scopes: Array<Scope>, globalNames: Set<string>): void;