addUsage(state, symbol, usage): voidAttributes
state:
ParserStateparser state
symbol:
null | TopLevelSymbolthe symbol, or null for all symbols
usage:
Usageusage data
Returns:
voidProcesses the provided state.
addVariableUsage(parser, name, usage): voidAttributes
Processes the provided parser.
bailout(parserState): voidAttributes
parserState:
ParserStateparser state
Returns:
voidProcesses the provided parser state.
enable(parserState): voidAttributes
parserState:
ParserStateparser state
Returns:
voidProcesses the provided parser state.
getDependencyUsedByExportsCondition(dependency, usedByExports, moduleGraph): null | false | ((moduleGraphConnection: ModuleGraphConnection, runtime: RuntimeSpec) => ConnectionState)Attributes
dependency:
Dependencythe dependency
moduleGraph:
ModuleGraphmoduleGraph
Returns:
null | false | ((moduleGraphConnection: ModuleGraphConnection, runtime: RuntimeSpec) => ConnectionState)function to determine if the connection is active
Usage callback map.
getTopLevelSymbol(state): void | TopLevelSymbolAttributes
state:
ParserStateparser state
Returns:
void | TopLevelSymbolusage data
Returns usage data.
inferDependencyUsage(state): voidAttributes
state:
ParserStateparser state
Returns:
voidProcesses the provided state.
isDependencyUsedByExports(dependency, usedByExports, moduleGraph, runtime): booleanAttributes
dependency:
Dependencythe dependency
moduleGraph:
ModuleGraphmoduleGraph
runtime:
RuntimeSpecruntime
Returns:
booleanfalse, when unused. Otherwise true
Returns false, when unused. Otherwise true.
isEnabled(parserState): booleanAttributes
parserState:
ParserStateparser state
Returns:
booleantrue, 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
Returns symbol.
Type:
unique symbolType:
string | true | TopLevelSymbol