Instance Method
transform(renderNode:context:)
Removes references that are unreferenced in a given context from the given render node.
func transform(renderNode: RenderNode, context: RenderNodeTransformationContext) -> RemoveUnusedReferencesTransformation.RenderNodeTransformationResult
Parameters
renderNodeThe render node from which to remove unreferenced references.
contextThe context that the transformer uses to determine which references are unreferenced.
Return Value
The transformed render node and the unmodified context.
Discussion
A reference is considered “unreferenced” if the reference count for that reference in the transformation context is zero.