Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add compat for scalameta 4.9.1
- Loading branch information
Showing
20 changed files
with
193 additions
and
10 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
mtags/src/main/scala-2.11/scala/meta/internal/metals/ScalametaCompat.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package scala.meta.internal.metals | ||
|
||
import scala.meta.trees.Origin | ||
|
||
object ScalametaCompat { | ||
object ParsedOrigin { | ||
def unapply(origin: Origin): Option[(Int, Int)] = origin match { | ||
case Origin.Parsed(_, start, end) => Some((start, end)) | ||
case _ => None | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
mtags/src/main/scala-2.12.12/scala/meta/internal/metals/ScalametaCompat.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package scala.meta.internal.metals | ||
|
||
import scala.meta.internal.trees.Origin | ||
|
||
object ScalametaCompat { | ||
object ParsedOrigin { | ||
def unapply(origin: Origin): Option[(Int, Int)] = origin match { | ||
case parsed: Origin.Parsed => | ||
Some((parsed.pos.start, parsed.pos.end)) | ||
case _ => None | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
mtags/src/main/scala-2.12.13/scala/meta/internal/metals/ScalametaCompat.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package scala.meta.internal.metals | ||
|
||
import scala.meta.internal.trees.Origin | ||
|
||
object ScalametaCompat { | ||
object ParsedOrigin { | ||
def unapply(origin: Origin): Option[(Int, Int)] = origin match { | ||
case parsed: Origin.Parsed => | ||
Some((parsed.pos.start, parsed.pos.end)) | ||
case _ => None | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
mtags/src/main/scala-2.12.14/scala/meta/internal/metals/ScalametaCompat.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package scala.meta.internal.metals | ||
|
||
import scala.meta.internal.trees.Origin | ||
|
||
object ScalametaCompat { | ||
object ParsedOrigin { | ||
def unapply(origin: Origin): Option[(Int, Int)] = origin match { | ||
case parsed: Origin.Parsed => | ||
Some((parsed.pos.start, parsed.pos.end)) | ||
case _ => None | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
mtags/src/main/scala-2.12.15/scala/meta/internal/metals/ScalametaCompat.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package scala.meta.internal.metals | ||
|
||
import scala.meta.trees.Origin | ||
|
||
object ScalametaCompat { | ||
object ParsedOrigin { | ||
def unapply(origin: Origin): Option[(Int, Int)] = origin match { | ||
case Origin.Parsed(_, start, end) => Some((start, end)) | ||
case _ => None | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
mtags/src/main/scala-2.12.16/scala/meta/internal/metals/ScalametaCompat.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package scala.meta.internal.metals | ||
|
||
import scala.meta.trees.Origin | ||
|
||
object ScalametaCompat { | ||
object ParsedOrigin { | ||
def unapply(origin: Origin): Option[(Int, Int)] = origin match { | ||
case Origin.Parsed(_, start, end) => Some((start, end)) | ||
case _ => None | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
mtags/src/main/scala-2.12.17/scala/meta/internal/metals/ScalametaCompat.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package scala.meta.internal.metals | ||
|
||
import scala.meta.trees.Origin | ||
|
||
object ScalametaCompat { | ||
object ParsedOrigin { | ||
def unapply(origin: Origin): Option[(Int, Int)] = origin match { | ||
case Origin.Parsed(_, start, end) => Some((start, end)) | ||
case _ => None | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
mtags/src/main/scala-2.12.18/scala/meta/internal/metals/ScalametaCompat.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package scala.meta.internal.metals | ||
|
||
import scala.meta.trees.Origin | ||
|
||
object ScalametaCompat { | ||
object ParsedOrigin { | ||
def unapply(origin: Origin): Option[(Int, Int)] = origin match { | ||
case Origin.Parsed(_, start, end) => Some((start, end)) | ||
case _ => None | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
mtags/src/main/scala-2.12.19/scala/meta/internal/metals/ScalametaCompat.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package scala.meta.internal.metals | ||
|
||
import scala.meta.trees.Origin | ||
|
||
object ScalametaCompat { | ||
object ParsedOrigin { | ||
def unapply(origin: Origin): Option[(Int, Int)] = origin match { | ||
case Origin.Parsed(_, start, end) => Some((start, end)) | ||
case _ => None | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
mtags/src/main/scala-2.13.5/meta/internal/metals/ScalametaCompat.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package scala.meta.internal.metals | ||
|
||
import scala.meta.internal.trees.Origin | ||
|
||
object ScalametaCompat { | ||
object ParsedOrigin { | ||
def unapply(origin: Origin): Option[(Int, Int)] = origin match { | ||
case parsed: Origin.Parsed => | ||
Some((parsed.pos.start, parsed.pos.end)) | ||
case _ => None | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
mtags/src/main/scala-2.13.6/meta/internal/metals/ScalametaCompat.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package scala.meta.internal.metals | ||
|
||
import scala.meta.internal.trees.Origin | ||
|
||
object ScalametaCompat { | ||
object ParsedOrigin { | ||
def unapply(origin: Origin): Option[(Int, Int)] = origin match { | ||
case parsed: Origin.Parsed => | ||
Some((parsed.pos.start, parsed.pos.end)) | ||
case _ => None | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
mtags/src/main/scala-2.13.7/meta/internal/metals/ScalametaCompat.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package scala.meta.internal.metals | ||
|
||
import scala.meta.internal.trees.Origin | ||
|
||
object ScalametaCompat { | ||
object ParsedOrigin { | ||
def unapply(origin: Origin): Option[(Int, Int)] = origin match { | ||
case parsed: Origin.Parsed => | ||
Some((parsed.pos.start, parsed.pos.end)) | ||
case _ => None | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
mtags/src/main/scala-2.13.8/meta/internal/metals/ScalametaCompat.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package scala.meta.internal.metals | ||
|
||
import scala.meta.internal.trees.Origin | ||
|
||
object ScalametaCompat { | ||
object ParsedOrigin { | ||
def unapply(origin: Origin): Option[(Int, Int)] = origin match { | ||
case parsed: Origin.Parsed => | ||
Some((parsed.pos.start, parsed.pos.end)) | ||
case _ => None | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
mtags/src/main/scala-2.13/scala/meta/internal/metals/ScalametaCompat.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package scala.meta.internal.metals | ||
|
||
import scala.meta.trees.Origin | ||
|
||
object ScalametaCompat { | ||
object ParsedOrigin { | ||
def unapply(origin: Origin): Option[(Int, Int)] = origin match { | ||
case Origin.Parsed(_, start, end) => Some((start, end)) | ||
case _ => None | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
mtags/src/main/scala-3/scala/meta/internal/metals/ScalametaCompat.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package scala.meta.internal.metals | ||
|
||
import scala.meta.trees.Origin | ||
|
||
object ScalametaCompat: | ||
object ParsedOrigin: | ||
def unapply(origin: Origin): Option[(Int, Int)] = origin match | ||
case Origin.Parsed(_, start, end) => Some((start, end)) | ||
case _ => None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/unit/src/test/resources/inlayHints3/example/dotted.filename.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package example | ||
|
||
type Toplevel = Int | ||
type Toplevel = Int |
2 changes: 1 addition & 1 deletion
2
tests/unit/src/test/resources/semanticTokens3/example/dotted.filename.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<<package>>/*keyword*/ <<example>>/*namespace*/ | ||
|
||
<<type>>/*keyword*/ <<Toplevel>>/*type,definition*/ = <<Int>>/*class,abstract*/ | ||
<<type>>/*keyword*/ <<Toplevel>>/*type,definition*/ = <<Int>>/*class,abstract*/ |