We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5364af2 commit 59a708eCopy full SHA for 59a708e
sourcecode/src-3/sourcecode/Macros.scala
@@ -152,7 +152,7 @@ object Macros {
152
}
153
154
def fileNameImpl(using Quotes): Expr[sourcecode.FileName] = {
155
- val name = quotes.reflect.Position.ofMacroExpansion.sourceFile.jpath.getFileName.toString
+ val name = quotes.reflect.Position.ofMacroExpansion.sourceFile.name
156
'{sourcecode.FileName(${Expr(name)})}
157
158
0 commit comments