Skip to content

Commit

Permalink
Origin is now part of the public API
Browse files Browse the repository at this point in the history
  • Loading branch information
bjaglin committed Feb 13, 2024
1 parent dfe99b3 commit 6d8b555
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import scala.meta._
import scala.meta.internal.inputs.XtensionInputSyntaxStructure
import scala.meta.internal.semanticdb.Scala.Descriptor
import scala.meta.internal.semanticdb.Scala.DescriptorParser
import scala.meta.internal.trees.Origin
import scala.meta.internal.{semanticdb => s}
import scala.meta.trees.Origin

object ScalametaInternals {
private val EOL = System.lineSeparator()
Expand Down
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)
}

0 comments on commit 6d8b555

Please sign in to comment.