File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
modelql-core/src/commonMain/kotlin/org/modelix/modelql/core
modelql-untyped/src/commonMain/kotlin/org/modelix/modelql/untyped Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,11 @@ typealias StepFlow<E> = Flow<IStepOutput<E>>
33
33
val <T > Flow <IStepOutput <T >>.value: Flow <T > get() = map { it.value }
34
34
fun <T > Flow<T>.asStepFlow (owner : IProducingStep <T >? ): StepFlow <T > = map { it.asStepOutput(owner) }
35
35
36
- class SimpleStepOutput <out E >(override val value : E , val owner : IProducingStep <E >? ) : IStepOutput<E>
36
+ class SimpleStepOutput <out E >(override val value : E , val owner : IProducingStep <E >? ) : IStepOutput<E> {
37
+ override fun toString (): String {
38
+ return " SimpleStepOutput[$value ]"
39
+ }
40
+ }
37
41
38
42
class SimpleStepOutputSerializer <E >(val valueSerializer : KSerializer <E >, val owner : IProducingStep <E >? ) : KSerializer<SimpleStepOutput<E>> {
39
43
init {
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ import org.modelix.modelql.core.stepOutputSerializer
39
39
class ResolveNodeStep () : MonoTransformingStep<INodeReference, INode>() {
40
40
override fun createFlow (input : StepFlow <INodeReference >, context : IFlowInstantiationContext ): StepFlow <INode > {
41
41
return input.map {
42
- it.value.resolveInCurrentContext() ? : throw IllegalArgumentException (" Node not found: $it " )
42
+ it.value.resolveInCurrentContext() ? : throw IllegalArgumentException (" Node not found: ${it.value} " )
43
43
}.asStepFlow(this )
44
44
}
45
45
You can’t perform that action at this time.
0 commit comments