Skip to content

Commit 0afdbcd

Browse files
committed
wording fix in comment
1 parent 22cff0d commit 0afdbcd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/src/dotty/tools/dotc/fromtasty/NonTastyScalaCompilationUnit.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import dotty.tools.dotc.util.NoSource
55

66
/**
77
* A marker CompilationUnit to return up the call stack from ReadTasty. This will tell us that we've
8-
* encountered, and attempted to inspect, a Java class file. We can't TASTy-inspect a Java class obviously,
9-
* but we want to return the fact we found it so that higher-up we can take appropriate action if desired.
8+
* encountered, and attempted to inspect, a non-Tasty Scala class file (for example a legacy class pre-Scala 3).
9+
* In this case we still want to return the fact we found it so that higher-up we can take appropriate
10+
* action if desired.
1011
*/
1112
class NonTastyScalaCompilationUnit(val className: String) extends CompilationUnit(NoSource) {
1213
override def toString: String = s"Non-Tasty Scala class file $className"

0 commit comments

Comments
 (0)