registerFunction static method

dynamic registerFunction(
  1. PipelineFunction fn,
  2. String label
)

Implementation

static registerFunction(PipelineFunction fn, String label) {
  if (registeredFunctions.containsKey(label)) {
    Utils.warn('Overwriting existing registered function: $label');
  }

  //fn.label = label;
  registeredFunctions[label] = fn;
  functionsToName[fn] = label;
}