ddcKernelBuilder function

Builder ddcKernelBuilder(
  1. BuilderOptions options, {
  2. bool soundNullSafety = false,
})

Implementation

Builder ddcKernelBuilder(BuilderOptions options,
    {bool soundNullSafety = false}) {
  validateOptions(options.config, _supportedOptions, 'build_web_compilers:ddc',
      deprecatedOptions: _deprecatedOptions);
  _ensureSameDdcOptions(options);

  return KernelBuilder(
      summaryOnly: true,
      sdkKernelPath: sdkDdcKernelPath(soundNullSafety),
      outputExtension: ddcKernelExtension(soundNullSafety),
      platform: ddcPlatform,
      useIncrementalCompiler: _readUseIncrementalCompilerOption(options),
      trackUnusedInputs: _readTrackInputsCompilerOption(options),
      soundNullSafety: soundNullSafety);
}