Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scalameta: upgrade to v4.9.7 #4066

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._

object Dependencies {
val metaconfigV = "0.12.0"
val scalametaV = "4.9.6"
val scalametaV = "4.9.7"
val scalacheckV = "1.18.0"
val coursier = "2.1.10"
val munitV = "1.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2882,7 +2882,7 @@ object FormatOps {
})

val EnumeratorAssignRhsOnLeft = new ExtractFromMeta(_.leftOwner match {
case x: Tree.WithBody with Enumerator => Some(x.body)
case x: Enumerator.Assign => Some(x.rhs)
case _ => None
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ import scala.meta.internal.trees._
object InfixApp {

implicit class XtensionInfix(private val tree: Member.Infix) extends AnyVal {
// https://scala-lang.org/files/archive/spec/2.11/06-expressions.html#infix-operations
// The precedence of an assignment ... is lower than the precedence of any other ...
@inline
def isAssignment: Boolean = tree.op.value.isAssignmentOp

@inline
def precedence: Int = InfixApp.getPrecedence(tree.op.value)

Expand All @@ -35,6 +30,7 @@ object InfixApp {
}

// https://scala-lang.org/files/archive/spec/2.11/06-expressions.html#infix-operations
// The precedence of an assignment ... is lower than the precedence of any other ...
private val infixOpPrecedence: Map[Char, Int] = {
val builder = Map.newBuilder[Char, Int]
def add(precedence: Int, ops: Char*): Unit = addSeq(precedence, ops)
Expand Down
Loading