Attributes
new InitFragment(content, stage, position, key?, endContent?): InitFragment< GenerateContext >Attributes
content:
<string>
|
<Source>
|
<undefined>the source code that will be included as initialization code
stage:
<number>category of initialization code (contribute to order)
position:
<number>position in the category (contribute to order)
key:
<string>unique key to avoid emitting the same initialization code twice
Returns:
{InitFragment< GenerateContext >}
Attributes
deserialize(context): voidAttributes
context:
<ObjectDeserializerContext>context
Returns:
{void}
getContent(context): string | Source | undefinedAttributes
context:
<GenerateContext>context
Returns:
<string>
|
<Source>
|
<undefined>the source code that will be included as initialization code
getEndContent(context): string | Source | undefinedAttributes
context:
<GenerateContext>context
Returns:
<string>
|
<Source>
|
<undefined>the source code that will be included at the end of the module
serialize(context): voidAttributes
context:
<ObjectSerializerContext>context
Returns:
{void}
Attributes
source:
<Source>sources
initFragments:
{MaybeMergeableInitFragment< Context >[]} init fragments
context:
{Context} context
Returns:
<Source>source