File tree 1 file changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/transform
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -420,10 +420,10 @@ class PostTyper extends MacroTransform with InfoTransformer { thisPhase =>
420
420
// Add SourceFile annotation to top-level classes
421
421
if sym.owner.is(Package ) then
422
422
// TODO do not add SourceFile annotation
423
- if ctx.compilationUnit.source.exists && sym != defn.SourceFileAnnot then
424
- val reference = ctx.settings.sourceroot.value
425
- val relativePath = util.SourceFile .relativePath(ctx.compilationUnit.source, reference)
426
- sym.addAnnotation(Annotation .makeSourceFile(relativePath, tree.span))
423
+ // if ctx.compilationUnit.source.exists && sym != defn.SourceFileAnnot then
424
+ // val reference = ctx.settings.sourceroot.value
425
+ // val relativePath = util.SourceFile.relativePath(ctx.compilationUnit.source, reference)
426
+ // sym.addAnnotation(Annotation.makeSourceFile(relativePath, tree.span))
427
427
if sym != defn.WithPureFunsAnnot && sym != defn.CaptureCheckedAnnot then
428
428
if Feature .ccEnabled then
429
429
sym.addAnnotation(Annotation (defn.CaptureCheckedAnnot , tree.span))
You can’t perform that action at this time.
0 commit comments