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>Processes the provided state.
addVariableUsage(parser, name, usage): voidAttributes
parser:
<JavascriptParser>the parser
name:
<string>name of variable
usage:
<Usage>usage data
Returns:
<void>Processes the provided parser.
bailout(parserState): voidAttributes
parserState:
<ParserState>parser state
Returns:
<void>Processes the provided parser state.
enable(parserState): voidAttributes
parserState:
<ParserState>parser state
Returns:
<void>Processes the provided parser state.
getDependencyUsedByExportsCondition(dependency, usedByExports, moduleGraph): null | false | FunctionAttributes
dependency:
<Dependency>the dependency
usedByExports:
<undefined>
|
<boolean>
|
<Set><
<string>
> usedByExports infomoduleGraph:
<ModuleGraph>moduleGraph
Returns:
<null>
|
<false>
|
<Function>function to determine if the connection is active
Usage callback map.
getTopLevelSymbol(state): void | TopLevelSymbolAttributes
state:
<ParserState>parser state
Returns:
<void>
|
<TopLevelSymbol>usage data
Returns usage data.
inferDependencyUsage(state): voidAttributes
state:
<ParserState>parser state
Returns:
<void>Processes the provided state.
isDependencyUsedByExports(dependency, usedByExports, moduleGraph, runtime): booleanAttributes
dependency:
<Dependency>the dependency
usedByExports:
<undefined>
|
<boolean>
|
<Set><
<string>
> usedByExports infomoduleGraph:
<ModuleGraph>moduleGraph
runtime:
<RuntimeSpec>runtime
Returns:
<boolean>false, when unused. Otherwise true
Returns false, when unused. Otherwise true.
isEnabled(parserState): booleanAttributes
parserState:
<ParserState>parser state
Returns:
<boolean>true, when enabled
Returns true, when enabled.
onUsage(state, onUsageCallback): voidAttributes
Processes the provided state.
setTopLevelSymbol(state, symbol?): voidAttributes
Processes the provided state.
tagTopLevelSymbol(parser, name): undefined | TopLevelSymbolAttributes
parser:
<JavascriptParser>parser
name:
<string>name of variable
Returns:
<undefined>
|
<TopLevelSymbol>symbol
Returns symbol.
Type:
{unique symbol}
Type:
<string>
|
<true>
|
<TopLevelSymbol>