public static MethodCallBuilder AddMethodCall( this AssignmentBuilder builder, string?methodName = null) { MethodCallBuilder methodCallBuilder = MethodCallBuilder .New() .SetDetermineStatement(false); if (methodName is not null) { methodCallBuilder.SetMethodName(methodName); } builder.SetRighthandSide(methodCallBuilder); return(methodCallBuilder); }
public ExceptionBuilder SetException(string exception) { _method.SetMethodName(exception); return(this); }