Represents InitFragment.
Extended by ModuleExternalInitFragment.
new InitFragment(content, stage, position, key?, endContent?): InitFragment<GenerateContext>
Attributes
Creates an instance of InitFragment.
Source Code: lib/InitFragment.js#L47Type:
stringType:
numberType:
numberType:
numberType:
numberType:
numberType:
numberType:
numberType:
numberType:
numberinitFragment.deserialize(context): void
Attributes
Restores this instance from the provided deserializer context.
initFragment.getContent(context): string | Source | undefined
Attributes
context:
GenerateContextReturns the source code that will be included as initialization code.
initFragment.getEndContent(context): string | Source | undefined
Attributes
context:
GenerateContextReturns the source code that will be included at the end of the module.
initFragment.serialize(context): void
Attributes
Serializes this instance into the provided serializer context.
InitFragment.addToSource(source, initFragments, context): Source
Attributes
Adds the provided source to the init fragment.