scala.tools.tasty.Attributes.scala Maven / Gradle / Ivy
The newest version!
/*
* Scala (https://www.scala-lang.org)
*
* Copyright EPFL and Lightbend, Inc.
*
* Licensed under Apache License 2.0
* (http://www.apache.org/licenses/LICENSE-2.0).
*
* See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*/
package scala.tools.tasty
/** Representation of the `Attributes` section of a TASTy file,
* with a minimal API for what is relevant for reading of signatures.
*/
sealed trait Attributes {
def isJava: Boolean
}
object Attributes {
private class ConcreteAttributes(val isJava: Boolean) extends Attributes
val empty: Attributes = new ConcreteAttributes(isJava = false)
val javaSource: Attributes = new ConcreteAttributes(isJava = true)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy