File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
scaladoc/src/dotty/tools/scaladoc/tasty Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ object SyntheticsSupport:
29
29
import reflect ._
30
30
s.flags.is(Flags .Opaque )
31
31
32
- def isInfix : Boolean = hackIsInfix(s)
33
-
34
32
def getmembers : List [reflect.Symbol ] = hackGetmembers(s)
35
33
36
34
end extension
@@ -50,14 +48,6 @@ object SyntheticsSupport:
50
48
c.constructor.leadingTypeParams.nonEmpty && end <= typesEnd + 1
51
49
}
52
50
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
- }
61
51
/* We need there to filter out symbols with certain flagsets, because these symbols come from compiler and TASTY can't handle them well.
62
52
They are valdefs that describe case companion objects and cases from enum.
63
53
TASTY crashed when calling _.tree on them.
You can’t perform that action at this time.
0 commit comments