@@ -51,8 +51,8 @@ object Matcher {
5151 def hasBindAnnotation (sym : Symbol ) = sym.annots.exists(isBindAnnotation)
5252
5353 def isBindAnnotation (tree : Tree ): Boolean = tree match {
54- case New (tpt) => tpt.symbol == kernel .Definitions_InternalQuoted_patternBindHoleAnnot
55- case annot => annot.symbol.owner == kernel .Definitions_InternalQuoted_patternBindHoleAnnot
54+ case New (tpt) => tpt.symbol == internal .Definitions_InternalQuoted_patternBindHoleAnnot
55+ case annot => annot.symbol.owner == internal .Definitions_InternalQuoted_patternBindHoleAnnot
5656 }
5757
5858 /** Check that all trees match with `mtch` and concatenate the results with && */
@@ -102,14 +102,14 @@ object Matcher {
102102
103103 // Match a scala.internal.Quoted.patternHole typed as a repeated argument and return the scrutinee tree
104104 case (IsTerm (scrutinee @ Typed (s, tpt1)), Typed (TypeApply (patternHole, tpt :: Nil ), tpt2))
105- if patternHole.symbol == kernel .Definitions_InternalQuoted_patternHole &&
105+ if patternHole.symbol == internal .Definitions_InternalQuoted_patternHole &&
106106 s.tpe <:< tpt.tpe &&
107107 tpt2.tpe.derivesFrom(definitions.RepeatedParamClass ) =>
108108 matched(scrutinee.seal)
109109
110110 // Match a scala.internal.Quoted.patternHole and return the scrutinee tree
111111 case (IsTerm (scrutinee), TypeApply (patternHole, tpt :: Nil ))
112- if patternHole.symbol == kernel .Definitions_InternalQuoted_patternHole &&
112+ if patternHole.symbol == internal .Definitions_InternalQuoted_patternHole &&
113113 scrutinee.tpe <:< tpt.tpe =>
114114 matched(scrutinee.seal)
115115
@@ -142,7 +142,7 @@ object Matcher {
142142 fn1 =#= fn2 && args1 =##= args2
143143
144144 case (Block (stats1, expr1), Block (binding :: stats2, expr2)) if isTypeBinding(binding) =>
145- qctx.tasty.kernel .Context_GADT_addToConstraint (the[Context ])(binding.symbol :: Nil )
145+ qctx.tasty.internal .Context_GADT_addToConstraint (the[Context ])(binding.symbol :: Nil )
146146 matched(new SymBinding (binding.symbol)) && Block (stats1, expr1) =#= Block (stats2, expr2)
147147
148148 case (Block (stat1 :: stats1, expr1), Block (stat2 :: stats2, expr2)) =>
@@ -152,7 +152,7 @@ object Matcher {
152152
153153 case (scrutinee, Block (typeBindings, expr2)) if typeBindings.forall(isTypeBinding) =>
154154 val bindingSymbols = typeBindings.map(_.symbol)
155- qctx.tasty.kernel .Context_GADT_addToConstraint (the[Context ])(bindingSymbols)
155+ qctx.tasty.internal .Context_GADT_addToConstraint (the[Context ])(bindingSymbols)
156156 bindingSymbols.foldRight(scrutinee =#= expr2)((x, acc) => matched(new SymBinding (x)) && acc)
157157
158158 case (If (cond1, thenp1, elsep1), If (cond2, thenp2, elsep2)) =>
@@ -336,13 +336,13 @@ object Matcher {
336336
337337 val res = {
338338 if (hasTypeSplices) {
339- implicit val ctx : Context = qctx.tasty.kernel .Context_GADT_setFreshGADTBounds (rootContext)
339+ implicit val ctx : Context = qctx.tasty.internal .Context_GADT_setFreshGADTBounds (rootContext)
340340 val matchings = scrutineeExpr.unseal.underlyingArgument =#= patternExpr.unseal.underlyingArgument
341341 // After matching and doing all subtype check, we have to aproximate all the type bindings
342342 // that we have found and seal them in a quoted.Type
343343 matchings.asOptionOfTuple.map { tup =>
344344 Tuple .fromArray(tup.toArray.map { // TODO improve performace
345- case x : SymBinding => kernel .Context_GADT_approximation (the[Context ])(x.sym, true ).seal
345+ case x : SymBinding => internal .Context_GADT_approximation (the[Context ])(x.sym, true ).seal
346346 case x => x
347347 })
348348 }
0 commit comments