Skip to content

Commit 88c9beb

Browse files
Rename AbstractWorkflowNode to WorkflowNode.
This intermediate rename was to help git show the correct history for StatefulWorkflowNode.
1 parent 812c46b commit 88c9beb

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
@@ -62,7 +62,7 @@ internal class StatefulWorkflowNode<PropsT, StateT, OutputT, RenderingT>(
6262
override val parent: WorkflowSession? = null,
6363
interceptor: WorkflowInterceptor = NoopWorkflowInterceptor,
6464
idCounter: IdCounter? = null
65-
) : AbstractWorkflowNode<PropsT, OutputT, RenderingT>(
65+
) : WorkflowNode<PropsT, OutputT, RenderingT>(
6666
id = id,
6767
baseContext = baseContext,
6868
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
@@ -20,7 +20,7 @@ import kotlin.coroutines.CoroutineContext
2020
* Responsible for tracking child workflows, starting them and tearing them down when necessary.
2121
* Also manages restoring children from snapshots.
2222
*
23-
* Child workflows are stored in [WorkflowChildNode]s, which associate the child's [AbstractWorkflowNode]
23+
* Child workflows are stored in [WorkflowChildNode]s, which associate the child's [WorkflowNode]
2424
* with its output handler.
2525
*
2626
* ## Rendering
@@ -147,7 +147,7 @@ internal class SubtreeManager<PropsT, StateT, OutputT>(
147147
}
148148

149149
/**
150-
* Uses [selector] to invoke [AbstractWorkflowNode.registerTreeActionSelectors] for every running child
150+
* Uses [selector] to invoke [WorkflowNode.registerTreeActionSelectors] for every running child
151151
* workflow this instance is managing.
152152
*/
153153
fun registerChildActionSelectors(selector: SelectBuilder<ActionProcessingResult>) {

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
@@ -32,7 +32,7 @@ internal fun <PropsT, OutputT, RenderingT> createWorkflowNode(
3232
parent: WorkflowSession? = null,
3333
interceptor: WorkflowInterceptor = NoopWorkflowInterceptor,
3434
idCounter: IdCounter? = null
35-
): AbstractWorkflowNode<PropsT, OutputT, RenderingT> = StatefulWorkflowNode(
35+
): WorkflowNode<PropsT, OutputT, RenderingT> = StatefulWorkflowNode(
3636
id = id,
3737
workflow = workflow.asStatefulWorkflow(),
3838
initialProps = initialProps,
@@ -46,7 +46,7 @@ internal fun <PropsT, OutputT, RenderingT> createWorkflowNode(
4646
idCounter = idCounter,
4747
)
4848

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

0 commit comments

Comments
 (0)