Skip to content

Commit 686c6a0

Browse files
committed
Add a comment to GenJSExports#Exported explaining why it exists
I have attempted multiple times to remove the abstract base class only to realize we actually use two different subclasses.
1 parent 0d19d98 commit 686c6a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/src/main/scala/org/scalajs/nscplugin/GenJSExports.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,7 @@ trait GenJSExports[G <: Global with Singleton] extends SubComponent {
871871
}
872872
}
873873

874+
// Note: GenJSCode creates an anonymous subclass of Exported for JS class constructors.
874875
abstract class Exported(val sym: Symbol,
875876
// Parameters participating in overload resolution.
876877
val params: immutable.IndexedSeq[JSParamInfo]) {

0 commit comments

Comments
 (0)