dotty.tools.dotc.semanticdb.generated.Schema.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala3-compiler_3 Show documentation
Show all versions of scala3-compiler_3 Show documentation
scala3-compiler-bootstrapped
// Generated by https://github.com/tanishiking/semanticdb-for-scala3
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
// Do not edit!
//
// Protofile syntax: PROTO3
package dotty.tools.dotc.semanticdb
import dotty.tools.dotc.semanticdb.internal.*
import scala.annotation.internal.sharable
sealed abstract class Schema(val value: _root_.scala.Int) extends SemanticdbGeneratedEnum derives CanEqual {
type EnumType = Schema
def isLegacy: _root_.scala.Boolean = false
def isSemanticdb3: _root_.scala.Boolean = false
def isSemanticdb4: _root_.scala.Boolean = false
final def asRecognized: _root_.scala.Option[dotty.tools.dotc.semanticdb.Schema.Recognized] = if (isUnrecognized) _root_.scala.None else _root_.scala.Some(this.asInstanceOf[dotty.tools.dotc.semanticdb.Schema.Recognized])
}
object Schema {
sealed trait Recognized extends Schema
@SerialVersionUID(0L)
case object LEGACY extends Schema(0) with Schema.Recognized {
val index = 0
val name = "LEGACY"
override def isLegacy: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
case object SEMANTICDB3 extends Schema(3) with Schema.Recognized {
val index = 1
val name = "SEMANTICDB3"
override def isSemanticdb3: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
case object SEMANTICDB4 extends Schema(4) with Schema.Recognized {
val index = 2
val name = "SEMANTICDB4"
override def isSemanticdb4: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
final case class Unrecognized(unrecognizedValue: _root_.scala.Int) extends Schema(unrecognizedValue) with SemanticdbUnrecognizedEnum
lazy val values = scala.collection.immutable.Seq(LEGACY, SEMANTICDB3, SEMANTICDB4)
def fromValue(__value: _root_.scala.Int): Schema = __value match {
case 0 => LEGACY
case 3 => SEMANTICDB3
case 4 => SEMANTICDB4
case __other => Unrecognized(__other)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy