We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78a44d5 commit c76c84fCopy full SHA for c76c84f
compiler/src/dotty/tools/dotc/CompilationUnit.scala
@@ -16,6 +16,7 @@ import core.Decorators._
16
import config.{SourceVersion, Feature}
17
import StdNames.nme
18
import scala.annotation.internal.sharable
19
+import scala.util.control.NoStackTrace
20
import transform.MacroAnnotations
21
22
class CompilationUnit protected (val source: SourceFile) {
@@ -105,7 +106,7 @@ class CompilationUnit protected (val source: SourceFile) {
105
106
107
object CompilationUnit {
108
- class SuspendException extends Exception
109
+ class SuspendException extends Exception with NoStackTrace
110
111
/** Make a compilation unit for top class `clsd` with the contents of the `unpickled` tree */
112
def apply(clsd: ClassDenotation, unpickled: Tree, forceTrees: Boolean)(using Context): CompilationUnit =
0 commit comments