Skip to content

Commit 0132907

Browse files
committed
Remove isInfix method
1 parent 2ec9c52 commit 0132907

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

scaladoc/src/dotty/tools/scaladoc/tasty/SyntheticSupport.scala

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ object SyntheticsSupport:
2929
import reflect._
3030
s.flags.is(Flags.Opaque)
3131

32-
def isInfix: Boolean = hackIsInfix(s)
33-
3432
def getmembers: List[reflect.Symbol] = hackGetmembers(s)
3533

3634
end extension
@@ -50,14 +48,6 @@ object SyntheticsSupport:
5048
c.constructor.leadingTypeParams.nonEmpty && end <= typesEnd + 1
5149
}
5250

53-
// TODO: #49 Remove it after TASTY-Reflect release with published flag Extension
54-
private def hackIsInfix(using Quotes)(rsym: reflect.Symbol): Boolean = {
55-
import reflect._
56-
import dotty.tools.dotc
57-
given ctx: dotc.core.Contexts.Context = quotes.asInstanceOf[scala.quoted.runtime.impl.QuotesImpl].ctx
58-
val sym = rsym.asInstanceOf[dotc.core.Symbols.Symbol]
59-
ctx.definitions.isInfix(sym)
60-
}
6151
/* We need there to filter out symbols with certain flagsets, because these symbols come from compiler and TASTY can't handle them well.
6252
They are valdefs that describe case companion objects and cases from enum.
6353
TASTY crashed when calling _.tree on them.

0 commit comments

Comments
 (0)