addUsage(state, symbol, usage): voidAttributes
state:
<ParserState>parser state
symbol:
<null>
|
<TopLevelSymbol>the symbol, or null for all symbols
usage:
{Usage} usage data
Returns:
{void}
addVariableUsage(parser, name, usage): voidAttributes
Returns:
{void}
bailout(parserState): voidAttributes
parserState:
<ParserState>parser state
Returns:
{void}
enable(parserState): voidAttributes
parserState:
<ParserState>parser state
Returns:
{void}
getDependencyUsedByExportsCondition(dependency, usedByExports, moduleGraph): null | objectAttributes
dependency:
<Dependency>the dependency
usedByExports:
{undefined|boolean|Set
} usedByExports info
moduleGraph:
<ModuleGraph>moduleGraph
getTopLevelSymbol(state): TopLevelSymbolAttributes
state:
<ParserState>parser state
Returns:
<TopLevelSymbol>usage data
inferDependencyUsage(state): voidAttributes
state:
<ParserState>parser state
Returns:
{void}
isDependencyUsedByExports(dependency, usedByExports, moduleGraph, runtime): booleanAttributes
dependency:
<Dependency>the dependency
usedByExports:
{undefined|boolean|Set
} usedByExports info
moduleGraph:
<ModuleGraph>moduleGraph
runtime:
{RuntimeSpec} runtime
Returns:
<boolean>false, when unused. Otherwise true
isEnabled(parserState): booleanAttributes
parserState:
<ParserState>parser state
Returns:
<boolean>true, when enabled
onUsage(state, onUsageCallback): voidAttributes
state:
<ParserState>parser state
onUsageCallback:
<object>on usage callback
Returns:
{void}
setTopLevelSymbol(state, symbol?): voidAttributes
state:
<ParserState>parser state
symbol:
<TopLevelSymbol>the symbol
Returns:
{void}
tagTopLevelSymbol(parser, name): undefined | TopLevelSymbolAttributes
parser:
<JavascriptParser>parser
name:
<string>name of variable
Returns:
<undefined>
|
<TopLevelSymbol>symbol
Type:
<symbol>