FactoryData validate()

in functions_framework_builder/lib/src/function_type_validator.dart [27:45]


  FactoryData validate(
    LibraryElement library,
    String targetName,
    FunctionElement element,
  ) {
    for (var type in _types) {
      final reference = type.createReference(library, targetName, element);
      if (reference != null) {
        return reference;
      }
    }
    throw InvalidGenerationSourceError(
      '''
Not compatible with a supported function shape:
${_types.map((e) => '  ${e.typedefName} [${e.typeDescription}] from ${e.libraryUri}').join('\n')}
''',
      element: element,
    );
  }