On this page

class HtmlGenerator extends Generator
Source Code: lib/html/HtmlGenerator.js#L319
new HtmlGenerator(): HtmlGenerator
Source Code: lib/html/HtmlGenerator.js#L1023
htmlGenerator.generate(module, __namedParameters): Source | null
Source Code: lib/Generator.js#L111
Attributes
__namedParameters:GenerateContext
Returns:Source | null

Generates generated code for this runtime module.

htmlGenerator.generateError(error, module, generateContext): Source | null
Source Code: lib/html/HtmlGenerator.js#L1452
Attributes
error:Error
generateContext:GenerateContext
Returns:Source | null

Generates fallback output for the provided error condition.

htmlGenerator.getConcatenationBailoutReason(module, context): string | undefined
Source Code: lib/Generator.js#L126
Attributes

Returns the reason this module cannot be concatenated, when one exists.

htmlGenerator.getSize(module, type?): number
Source Code: lib/Generator.js#L97
Attributes
type:string
Returns:number

Returns the estimated size for the requested source type.

htmlGenerator.getTypes(module): ReadonlySet<string>
Source Code: lib/Generator.js#L76
Attributes
Returns:ReadonlySet<string>

Returns the source types available for this module.

htmlGenerator.getTypesDependOnIncomingConnections(): boolean
Source Code: lib/Generator.js#L85
Returns:boolean
htmlGenerator.sourceBlock(block, source, templateContext): void
Source Code: lib/html/HtmlGenerator.js#L1162
Attributes

Processes the provided dependencies block.

htmlGenerator.sourceDependency(dependency, source, templateContext): void
Source Code: lib/html/HtmlGenerator.js#L1141
Attributes
dependency:Dependency

Processes the provided module.

htmlGenerator.sourceModule(module, initFragments, source, generateContext): void
Source Code: lib/html/HtmlGenerator.js#L1180
Attributes
initFragments:InitFragment<GenerateContext>[]
generateContext:GenerateContext

Processes the provided module.

htmlGenerator.updateHash(hash, __namedParameters): void
Source Code: lib/Generator.js#L135
Attributes
hash:Hash
__namedParameters:UpdateHashContextGenerator

Updates the hash with the data contributed by this instance.

HtmlGenerator.byType(map): ByTypeGenerator
Source Code: lib/Generator.js#L65
Attributes
map:{ [index: string]: Generator | undefined }

Returns generator by type.