Skip to content

Commit 59d8d02

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

File tree

13 files changed

+3245
-0
lines changed

13 files changed

+3245
-0
lines changed
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)