Attributes
new InitFragment(content, stage, position, key?, endContent?): InitFragment< GenerateContext >Attributes
Returns:
{InitFragment< GenerateContext >}
Creates an instance of InitFragment.
Attributes
deserialize(context): voidAttributes
context:
<ObjectDeserializerContext>Returns:
{void}
Restores this instance from the provided deserializer context.
getContent(context): string | Source | undefinedAttributes
context:
<GenerateContext>Returns:
<string>
|
<Source>
|
<undefined>Returns the source code that will be included as initialization code.
getEndContent(context): string | Source | undefinedAttributes
context:
<GenerateContext>Returns:
<string>
|
<Source>
|
<undefined>Returns the source code that will be included at the end of the module.
serialize(context): voidAttributes
context:
<ObjectSerializerContext>Returns:
{void}
Serializes this instance into the provided serializer context.
Attributes
Returns:
<Source>Adds the provided source to the init fragment.