![JAR search and dependency download from the Maven repository](/logo.png)
com.kyleu.projectile.models.thrift.schema.ThriftServiceMethod.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of projectile-parser-thrift_2.13 Show documentation
Show all versions of projectile-parser-thrift_2.13 Show documentation
Reads and transforms Thrift IDL files
The newest version!
package com.kyleu.projectile.models.thrift.schema
import com.facebook.swift.parser.model.{ThriftMethod, ThriftType}
import scala.jdk.CollectionConverters._
object ThriftServiceMethod {
def fromThrift(f: ThriftMethod) = ThriftServiceMethod(f.getName, f.getArguments.asScala.toIndexedSeq.map(ThriftStructField.fromThrift), f.getReturnType)
}
case class ThriftServiceMethod(key: String, arguments: Seq[ThriftStructField], returnType: ThriftType)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy