Skip to content

Commit

Permalink
Scalameta: upgrade to v4.9.7
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Jun 19, 2024
1 parent 0d97ee4 commit fb6ee45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
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

0 comments on commit fb6ee45

Please sign in to comment.