On this page

addUsage(state, symbol, usage): void
Attributes
parser state
the symbol, or null for all symbols
usage:
{Usage} usage data
Returns:
{void}

addVariableUsage(parser, name, usage): void
Attributes
the parser
name of variable
usage:
{Usage} usage data
Returns:
{void}

bailout(parserState): void
Attributes
parserState:<ParserState>
parser state
Returns:
{void}

enable(parserState): void
Attributes
parserState:<ParserState>
parser state
Returns:
{void}

getDependencyUsedByExportsCondition(dependency, usedByExports, moduleGraph): null | object
Attributes
dependency:<Dependency>
the dependency
usedByExports:
{undefined|boolean|Set } usedByExports info
moduleGraph:<ModuleGraph>
moduleGraph
Returns:<null> | <object>
function to determine if the connection is active

getTopLevelSymbol(state): TopLevelSymbol
Attributes
parser state
usage data

inferDependencyUsage(state): void
Attributes
parser state
Returns:
{void}

isDependencyUsedByExports(dependency, usedByExports, moduleGraph, runtime): boolean
Attributes
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): boolean
Attributes
parserState:<ParserState>
parser state
Returns:<boolean>
true, when enabled

onUsage(state, onUsageCallback): void
Attributes
parser state
onUsageCallback:<object>
on usage callback
Returns:
{void}

setTopLevelSymbol(state, symbol?): void
Attributes
parser state
the symbol
Returns:
{void}

tagTopLevelSymbol(parser, name): undefined | TopLevelSymbol
Attributes
parser
name of variable