from static method

Implementation

static Danger<WithInExpression, CitrusSyntaxException> from(String left, Iterable<String> right) {

    final log = Log(classLocation: WithInExpression, functionLocation: 'from');

    final fourthResult = AccesserableCollection.from([left]);
    log.add(fourthResult);
    if (fourthResult is! Success<AccesserableCollection, CitrusSyntaxException>) return Failure(fourthResult.asException, log);

    final eighthResult = AccesserableCollection.from(right);
    log.add(eighthResult);
    if (eighthResult is! Success<AccesserableCollection, CitrusSyntaxException>) return Failure(eighthResult.asException, log);

    final result = WithInExpression(
        SpaceCollection.fromIterable([Space()]),
        With(),
        SpaceCollection.fromIterable([Space()]),
        fourthResult.wrapped,
        SpaceCollection.fromIterable([Space()]),
        In(),
        SpaceCollection.fromIterable([Space()]),
        eighthResult.wrapped,
    );

    return Success(result, log);

}