FactoryData? createReference()

in functions_framework_builder/lib/src/supported_function_type.dart [66:79]


  FactoryData? createReference(
    LibraryElement library,
    String targetName,
    FunctionElement element,
  ) {
    if (element.library.typeSystem.isSubtypeOf(element.type, _type)) {
      return _TrivialFactoryData(
        escapeDartString(targetName),
        '$_constructor('
        '$functionsLibraryPrefix.${element.name},)',
      );
    }
    return null;
  }