Skip to content

Commit

Permalink
chore: Adjust to changes in this names
Browse files Browse the repository at this point in the history
  • Loading branch information
tgodzik committed Jul 6, 2023
1 parent 77f3e79 commit b82e54d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@ val mtagsSettings = List(
.cross(CrossVersion.for3Use2_13)
.exclude("org.scala-lang", "scala-reflect")
.exclude("org.scala-lang", "scala-compiler")
// the correct one should be brought in by the scala 3 compiler
.exclude("org.scala-lang", "scala-library")
.exclude(
"com.lihaoyi",
"geny_2.13",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ trait MtagsIndexer {
properties: Int
): String = {
val methodName = name match {
case Name.Anonymous() => Names.Constructor.value
case Name.This() => Names.Constructor.value
case _ => name.value
}
addSignature(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class ScalaMtags(val input: Input.VirtualFile, dialect: Dialect)
case _: Source => continue()
case t: Template =>
val overloads = new OverloadDisambiguator()
overloads.disambiguator("") // primary constructor
overloads.disambiguator("this") // primary constructor
t.stats.foreach {
case t: Ctor.Secondary =>
disambiguatedMethod(
Expand Down
1 change: 1 addition & 0 deletions tests/cross/src/test/scala/tests/pc/CompletionSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,7 @@ class CompletionSuite extends BaseCompletionSuite {
|""".stripMargin,
topLines = Some(5),
compat = Map(
// higherKinds was deprecated
"2.13.11" ->
"""|dynamics scala.languageFeature
|existentials scala.languageFeature
Expand Down

0 comments on commit b82e54d

Please sign in to comment.