class JsonGenerator extends Generator
new JsonGenerator(): JsonGenerator
Returns:
JsonGeneratorType:
JsonGeneratorOptionsjsonGenerator.generate(module, __namedParameters): Source | null
Attributes
Generates generated code for this runtime module.
jsonGenerator.generateError(error, module, generateContext): Source | null
Attributes
Generates fallback output for the provided error condition.
jsonGenerator.getConcatenationBailoutReason(module, context): string | undefined
Attributes
Returns the reason this module cannot be concatenated, when one exists.
jsonGenerator.getSize(module, type?): number
Attributes
Returns the estimated size for the requested source type.
jsonGenerator.getTypes(module): ReadonlySet<string>
Attributes
module:
NormalModuleReturns:
ReadonlySet<string>Returns the source types available for this module.
jsonGenerator.getTypesDependOnIncomingConnections(): boolean
Returns:
booleanjsonGenerator.updateHash(hash, __namedParameters): void
Attributes
hash:
Hash__namedParameters:
UpdateHashContextGeneratorUpdates the hash with the data contributed by this instance.
JsonGenerator.byType(map): ByTypeGenerator
Attributes
Returns:
ByTypeGeneratorReturns generator by type.