TransformationResult

sealed external interface TransformationResult<T : Node>(source)

Properties

Link copied to clipboard

Gets diagnostics for the transformation.

Link copied to clipboard
abstract val isEmitNotificationEnabled: (node: Node) -> Boolean?

Indicates if a given node needs an emit notification

Link copied to clipboard
abstract var transformed: ReadonlyArray<T>

Gets the transformed source files.

Functions

Link copied to clipboard
abstract fun dispose()

Clean up EmitNode entries on any parse-tree nodes.

Link copied to clipboard
abstract fun emitNodeWithNotification(hint: EmitHint, node: Node, emitCallback: (hint: EmitHint, node: Node) -> Unit)

Emits a node with possible notification.

Link copied to clipboard
abstract fun substituteNode(hint: EmitHint, node: Node): Node

Gets a substitute for a node, if one is available; otherwise, returns the original node.