Skip to content

Commit e3654a4

Browse files
committed
Extract only under -Ysemanticdb
1 parent 9826edf commit e3654a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/config/ScalaSettings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class ScalaSettings extends Settings.SettingGroup {
150150
val YdumpSbtInc: Setting[Boolean] = BooleanSetting("-Ydump-sbt-inc", "For every compiled foo.scala, output the API representation and dependencies used for sbt incremental compilation in foo.inc, implies -Yforce-sbt-phases.")
151151
val YcheckAllPatmat: Setting[Boolean] = BooleanSetting("-Ycheck-all-patmat", "Check exhaustivity and redundancy of all pattern matching (used for testing the algorithm)")
152152
val YretainTrees: Setting[Boolean] = BooleanSetting("-Yretain-trees", "Retain trees for top-level classes, accessible from ClassSymbol#tree")
153-
val YsemanticDB: Setting[Boolean] = BooleanSetting("-Ysemanticdb", "Store information in SemanticDB")
153+
val Ysemanticdb: Setting[Boolean] = BooleanSetting("-Ysemanticdb", "Store information in SemanticDB")
154154
val YshowTreeIds: Setting[Boolean] = BooleanSetting("-Yshow-tree-ids", "Uniquely tag all tree nodes in debugging output.")
155155

156156
val YprofileEnabled: Setting[Boolean] = BooleanSetting("-Yprofile-enabled", "Enable profiling.")

compiler/src/dotty/tools/dotc/semanticdb/ExtractSemanticDB.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ExtractSemanticDB extends Phase {
2323
override val phaseName: String = ExtractSemanticDB.name
2424

2525
override def isRunnable(implicit ctx: Context) =
26-
true || super.isRunnable && ctx.settings.YretainTrees.value
26+
super.isRunnable && ctx.settings.Ysemanticdb.value
2727

2828
// Check not needed since it does not transform trees
2929
override def isCheckable: Boolean = false

0 commit comments

Comments
 (0)