Skip to content

Commit 88b80f4

Browse files
committed
Update SourceFile API
1 parent ee2aaad commit 88b80f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sourcecode/src-3/sourcecode/Macros.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ object Macros {
213213

214214
def text[T: Type](v: Expr[T])(using Quotes): Expr[sourcecode.Text[T]] = {
215215
import quotes.reflect._
216-
val txt = Term.of(v).pos.sourceCode
216+
val txt = Term.of(v).pos.sourceCode.get
217217
'{sourcecode.Text[T]($v, ${Expr(txt)})}
218218
}
219219

0 commit comments

Comments
 (0)