pub fn transform_program(
    config: &Config,
    project_config: &ProjectConfig,
    program: Arc<Program>,
    base_fragment_names: Arc<FnvHashSet<StringKey>>,
    perf_logger: Arc<impl PerfLogger + 'static>,
    log_event: &impl PerfLogEvent,
) -> Result<Programs, BuildProjectFailure> {
    let timer = log_event.start("apply_transforms_time");
    let result = apply_transforms(
        project_config.name,
        program,
        base_fragment_names,
        &config.connection_interface,
        Arc::new(
            project_config
                .feature_flags
                .as_ref()
                .cloned()
                .unwrap_or_else(|| config.feature_flags.clone()),
        ),
        perf_logger,
    )
    .map_err(|errors| BuildProjectFailure::Error(BuildProjectError::ValidationErrors { errors }));

    log_event.stop(timer);

    result
}
/// Apply various chains of transforms to create a set of output programs.
Apply various chains of transforms to create a set of output programs.
Apply various chains of transforms to create a set of output programs .
pub fn transform_program(
    config: &Config,
    project_config: &ProjectConfig,
    program: Arc<Program>,
    base_fragment_names: Arc<FnvHashSet<StringKey>>,
    perf_logger: Arc<impl PerfLogger + 'static>,
    log_event: &impl PerfLogEvent,
) -> Result<Programs, BuildProjectFailure> {
    let timer = log_event.start("apply_transforms_time");
    let result = apply_transforms(
        project_config.name,
        program,
        base_fragment_names,
        &config.connection_interface,
        Arc::new(
            project_config
                .feature_flags
                .as_ref()
                .cloned()
                .unwrap_or_else(|| config.feature_flags.clone()),
        ),
        perf_logger,
    )
    .map_err(|errors| BuildProjectFailure::Error(BuildProjectError::ValidationErrors { errors }));
    log_event.stop(timer);
    result
}
pub fn transform_program ( config : & Config , project_config : & ProjectConfig , program : Arc < Program > , base_fragment_names : Arc < FnvHashSet < StringKey > > , perf_logger : Arc < impl PerfLogger + ' static > , log_event : & impl PerfLogEvent , ) -> Result < Programs , BuildProjectFailure > { let timer = log_event . start ( " " ) ; let result = apply_transforms ( project_config . name , program , base_fragment_names , & config . connection_interface , Arc :: new ( project_config . feature_flags . as_ref ( ) . cloned ( ) . unwrap_or_else ( | | config . feature_flags . clone ( ) ) , ) , perf_logger , ) . map_err ( | errors | BuildProjectFailure :: Error ( BuildProjectError :: ValidationErrors { errors } ) ) ; log_event . stop ( timer ) ; result }
Apply various chains of transforms to create a set of output programs.
Apply various chains of transforms to create a set of output programs .
config
&Config
project_config
&ProjectConfig
program
Arc<Program>
base_fragment_names
Arc<FnvHashSet<StringKey>>
perf_logger
Arc<impl PerfLogger + 'static>
log_event
&impl PerfLogEvent
config
&Config
project_config
&ProjectConfig
program
Arc<Program>
base_fragment_names
Arc<FnvHashSet<StringKey>>
perf_logger
Arc<impl PerfLogger + 'static>
log_event
&impl PerfLogEvent