Skip to content

Commit e986a97

Browse files
committed
Symbol type
1 parent f7abd32 commit e986a97

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

compiler/src/scala/quoted/runtime/impl/QuotesImpl.scala

+1
Original file line numberDiff line numberDiff line change
@@ -2480,6 +2480,7 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
24802480

24812481
def name: String = self.denot.name.toString
24822482
def fullName: String = self.denot.fullName.toString
2483+
def tpe: TypeRepr = self.denot.info
24832484
def pos: Option[Position] =
24842485
if self.exists then Some(self.sourcePos) else None
24852486

library/src/scala/quoted/Quotes.scala

+3
Original file line numberDiff line numberDiff line change
@@ -3585,6 +3585,9 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
35853585
/** The full name of this symbol up to the root package */
35863586
def fullName: String
35873587

3588+
/** The type of this symbol */
3589+
def tpe: TypeRepr
3590+
35883591
/** The position of this symbol */
35893592
def pos: Option[Position]
35903593

0 commit comments

Comments
 (0)