private[this] def hasStructAtLeaf()

in scrooge-generator/src/main/scala/com/twitter/scrooge/java_generator/FieldTypeController.scala [144:158]


  private[this] def hasStructAtLeaf(functionType: FunctionType): Boolean = {
    functionType match {
      case fieldType: FieldType =>
        fieldType match {
          case at: AnnotatedFieldType => hasStructAtLeaf(at.unwrap)
          case StructType(_, _) => true
          case MapType(keyType, valueType, _) =>
            hasStructAtLeaf(keyType) || hasStructAtLeaf(valueType)
          case SetType(setType, _) => hasStructAtLeaf(setType)
          case ListType(listType, _) => hasStructAtLeaf(listType)
          case _ => false
        }
      case _ => false
    }
  }