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
}
Attributes
deserialize(context): voidAttributes
context:
<ObjectDeserializerContext>context
Returns:
{void}
getContent(context): voidcontext{GenerateContext} context- Returns:
<string>|<Source>|<undefined>the source code that will be included as initialization code
getEndContent(context): voidcontext{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
[]} init fragments
context:
{Context} context
Returns:
<Source>source