-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1927 from scalacenter/test-scalameta
scalameta 4.9.x
- Loading branch information
Showing
6 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
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
3 changes: 0 additions & 3 deletions
3
scalafix-core/src/main/scala/scala/meta/internal/scalafix/ScalafixScalametaHacks.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,10 +1,7 @@ | ||
package scala.meta.internal.scalafix | ||
|
||
import scala.meta.Tree | ||
import scala.meta.internal.semanticdb.Scala.Names | ||
import scala.meta.internal.trees.Origin | ||
|
||
object ScalafixScalametaHacks { | ||
def resetOrigin(tree: Tree): Tree = tree.withOrigin(Origin.None) | ||
def encode(name: String): String = Names.encode(name) | ||
} |
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
8 changes: 8 additions & 0 deletions
8
scalafix-docs/src/main/scala/scala/meta/internal/prettyprinters/Enquote.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,8 @@ | ||
package scala.meta.internal.prettyprinters | ||
|
||
// compatibility hack until https://github.com/scalameta/mdoc/pull/842 is released | ||
object enquote { | ||
def apply(s: String, style: QuoteStyle): String = { | ||
style(s) | ||
} | ||
} |