Skip to content

Commit ddf7e1c

Browse files
Rename AbstractWorkflowNode to WorkflowNode.
This intermediate rename was to help git show the correct history for StatefulWorkflowNode.
1 parent c65938e commit ddf7e1c

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

workflow-runtime/src/commonMain/kotlin/com/squareup/workflow1/internal/StatefulWorkflowNode.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ internal class StatefulWorkflowNode<PropsT, StateT, OutputT, RenderingT>(
6464
override val parent: WorkflowSession? = null,
6565
interceptor: WorkflowInterceptor = NoopWorkflowInterceptor,
6666
idCounter: IdCounter? = null
67-
) : AbstractWorkflowNode<PropsT, OutputT, RenderingT>(
67+
) : WorkflowNode<PropsT, OutputT, RenderingT>(
6868
id = id,
6969
baseContext = baseContext,
7070
interceptor = interceptor,

workflow-runtime/src/commonMain/kotlin/com/squareup/workflow1/internal/SubtreeManager.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import kotlin.coroutines.CoroutineContext
1919
* Responsible for tracking child workflows, starting them and tearing them down when necessary.
2020
* Also manages restoring children from snapshots.
2121
*
22-
* Child workflows are stored in [WorkflowChildNode]s, which associate the child's [AbstractWorkflowNode]
22+
* Child workflows are stored in [WorkflowChildNode]s, which associate the child's [WorkflowNode]
2323
* with its output handler.
2424
*
2525
* ## Rendering
@@ -146,7 +146,7 @@ internal class SubtreeManager<PropsT, StateT, OutputT>(
146146
}
147147

148148
/**
149-
* Uses [selector] to invoke [AbstractWorkflowNode.onNextAction] for every running child workflow this
149+
* Uses [selector] to invoke [WorkflowNode.onNextAction] for every running child workflow this
150150
* instance is managing.
151151
*
152152
* @return [Boolean] whether or not the children action queues are empty.

workflow-runtime/src/commonMain/kotlin/com/squareup/workflow1/internal/WorkflowChildNode.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import com.squareup.workflow1.trace
99
/**
1010
* Representation of a child workflow that has been rendered by another workflow.
1111
*
12-
* Associates the child's [AbstractWorkflowNode] (which includes the key passed to `renderChild`) with the
12+
* Associates the child's [WorkflowNode] (which includes the key passed to `renderChild`) with the
1313
* output handler function that was passed to `renderChild`.
1414
*/
1515
internal class WorkflowChildNode<
@@ -21,11 +21,11 @@ internal class WorkflowChildNode<
2121
>(
2222
val workflow: Workflow<*, ChildOutputT, *>,
2323
private var handler: (ChildOutputT) -> WorkflowAction<ParentPropsT, ParentStateT, ParentOutputT>,
24-
val workflowNode: AbstractWorkflowNode<ChildPropsT, ChildOutputT, *>
24+
val workflowNode: WorkflowNode<ChildPropsT, ChildOutputT, *>
2525
) : InlineListNode<WorkflowChildNode<*, *, *, *, *>> {
2626
override var nextListNode: WorkflowChildNode<*, *, *, *, *>? = null
2727

28-
/** The [AbstractWorkflowNode]'s [WorkflowNodeId]. */
28+
/** The [WorkflowNode]'s [WorkflowNodeId]. */
2929
val id get() = workflowNode.id
3030

3131
/**
@@ -47,7 +47,7 @@ internal class WorkflowChildNode<
4747
}
4848

4949
/**
50-
* Wrapper around [AbstractWorkflowNode.render] that allows calling it with erased types.
50+
* Wrapper around [WorkflowNode.render] that allows calling it with erased types.
5151
*/
5252
fun <R> render(
5353
workflow: Workflow<*, *, *>,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ internal fun <PropsT, OutputT, RenderingT> createWorkflowNode(
3131
parent: WorkflowSession? = null,
3232
interceptor: WorkflowInterceptor = NoopWorkflowInterceptor,
3333
idCounter: IdCounter? = null
34-
): AbstractWorkflowNode<PropsT, OutputT, RenderingT> = StatefulWorkflowNode(
34+
): WorkflowNode<PropsT, OutputT, RenderingT> = StatefulWorkflowNode(
3535
id = id,
3636
workflow = workflow.asStatefulWorkflow(),
3737
initialProps = initialProps,
@@ -45,7 +45,7 @@ internal fun <PropsT, OutputT, RenderingT> createWorkflowNode(
4545
idCounter = idCounter,
4646
)
4747

48-
internal abstract class AbstractWorkflowNode<PropsT, OutputT, RenderingT>(
48+
internal abstract class WorkflowNode<PropsT, OutputT, RenderingT>(
4949
val id: WorkflowNodeId,
5050
protected val interceptor: WorkflowInterceptor,
5151
protected val emitAppliedActionToParent: (ActionApplied<OutputT>) -> ActionProcessingResult,

0 commit comments

Comments
 (0)