UNPKG

611 BTypeScriptView Raw
1import { Scope } from "./parser/tokenizer/state";
2import TokenProcessor from "./TokenProcessor";
3/**
4 * Traverse the given tokens and modify them if necessary to indicate that some names shadow global
5 * variables.
6 */
7export default function identifyShadowedGlobals(tokens: TokenProcessor, scopes: Array<Scope>, globalNames: Set<string>): void;
8/**
9 * We can do a fast up-front check to see if there are any declarations to global names. If not,
10 * then there's no point in computing scope assignments.
11 */
12export declare function hasShadowedGlobals(tokens: TokenProcessor, globalNames: Set<string>): boolean;