def genProtocolSkipMethod()

in scrooge-generator/src/main/scala/com/twitter/scrooge/backend/Generator.scala [497:512]


  def genProtocolSkipMethod(t: FunctionType): CodeFragment = {
    @scala.annotation.tailrec
    def getCode(t: FunctionType): String = t match {
      case at: AnnotatedFieldType => getCode(at.unwrap)
      case TBool => "offsetSkipBool"
      case TByte => "offsetSkipBool"
      case TI16 => "offsetSkipI16"
      case TI32 => "offsetSkipI32"
      case TI64 => "offsetSkipI64"
      case TDouble => "offsetSkipDouble"
      case TString => "offsetSkipString"
      case TBinary => "offsetSkipBinary"
      case x => throw new ScroogeInternalException("genProtocolSkipMethod#" + t)
    }
    v(getCode(t))
  }