Skip to content

Commit f05bc0d

Browse files
DRAFT : make quotes.reflect.* top-level definitions
1 parent 49286a9 commit f05bc0d

14 files changed

+4908
-1497
lines changed

library/src/scala/quoted/Quotes.scala

Lines changed: 1663 additions & 1497 deletions
Large diffs are not rendered by default.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package scala.quoted.meta
2+
3+
// TODO (KR) :
4+
sealed trait Constant
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package scala.quoted.meta
2+
3+
trait Flags private[meta] {
4+
5+
/** Is the given flag set a subset of this flag sets */
6+
def is(that: Flags): Boolean
7+
8+
/** Union of the two flag sets */
9+
def |(that: Flags): Flags
10+
11+
/** Intersection of the two flag sets */
12+
def &(that: Flags): Flags
13+
14+
/** Shows the flags as a String */
15+
def show: String
16+
17+
}
18+
object Flags {
19+
20+
def api(using meta: Meta): Meta.FlagsAPI = meta.internal.flags
21+
given Meta => Conversion[Flags.type, Meta.FlagsAPI] = _.api
22+
23+
}

0 commit comments

Comments
 (0)