Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,18 @@ class JavaScriptCompiler(typeProvider: ClassTypeProvider, config: RuntimeConfig)

if (config.readStoresPos) {
out.puts("this._debug = {};")
params.foreach { p =>
// Add debug information for enum type parameters
p.dataType match {
case t: EnumType =>
out.puts(s"this._debug['${idToStr(p.id)}'] = {")
out.inc
out.puts(s"enumName: \"${types2class(t.enumSpec.get.name, false)}\"")
out.dec
out.puts("};")
case _ => // Do nothing for non-enum types
}
}
}
out.puts
}
Expand Down