summaryrefslogtreecommitdiff
path: root/src/library/scala/reflect/base/FlagSets.scala
blob: 0ce7613eb3981771946d6948fabe8f2fd9fad03e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package scala.reflect
package base

trait FlagSets { self: Universe =>

  /** An abstract type representing sets of flags (like private, final, etc.) that apply to definition trees and symbols */
  type FlagSet

  /** A tag that preserves the identity of the `FlagSet` abstract type from erasure.
   *  Can be used for pattern matching, instance tests, serialization and likes.
   */
  implicit val FlagSetTag: ClassTag[FlagSet]

  /** The empty set of flags */
  val NoFlags: FlagSet
}