Skip to content

Commit b903bd9

Browse files
committed
Remove desugarIdent
1 parent c971de7 commit b903bd9

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

compiler/src/dotty/tools/dotc/tastyreflect/ReflectionCompilerInterface.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,6 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
309309
def Ref_term(tp: TermRef)(using ctx: Context): Ref =
310310
withDefaultPos(tpd.ref(tp).asInstanceOf[tpd.RefTree])
311311

312-
def Ref_desugarIdent(tree: Ident)(using ctx: Context): Ref =
313-
tpd.desugarIdent(tree).asInstanceOf[tpd.RefTree]
314-
315312
def Ref_apply(sym: Symbol)(using ctx: Context): Ref = {
316313
assert(sym.isTerm)
317314
withDefaultPos(tpd.ref(sym).asInstanceOf[tpd.RefTree])

library/src/scala/tasty/Reflection.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -677,10 +677,6 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
677677
def term(tp: TermRef)(using ctx: Context): Ref =
678678
internal.Ref_term(tp)
679679

680-
/** Desugar identifier into a select node. Return the tree itself if not possible */
681-
def desugarIdent(tree: Ident)(using ctx: Context): Ref =
682-
internal.Ref_desugarIdent(tree)
683-
684680
/** Create a reference tree from a symbol
685681
*
686682
* If `sym` refers to a class member `foo` in class `C`,

library/src/scala/tasty/reflect/CompilerInterface.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,6 @@ trait CompilerInterface {
322322
/** A tree representing the same reference as the given type */
323323
def Ref_term(tp: TermRef)(using ctx: Context): Ref
324324

325-
/** Desugar identifier into a select node. Return the tree itself if not possible */
326-
def Ref_desugarIdent(tree: Ident)(using ctx: Context): Ref
327-
328325
def Ref_apply(sym: Symbol)(using ctx: Context): Ref
329326

330327
/** Tree representing a reference to definition with a given name */

0 commit comments

Comments
 (0)