@@ -82,7 +82,6 @@ object TreeTransforms {
82
82
def prepareForTry (tree : Try )(implicit ctx : Context ) = this
83
83
def prepareForSeqLiteral (tree : SeqLiteral )(implicit ctx : Context ) = this
84
84
def prepareForTypeTree (tree : TypeTree )(implicit ctx : Context ) = this
85
- def prepareForSelectFromTypeTree (tree : SelectFromTypeTree )(implicit ctx : Context ) = this
86
85
def prepareForBind (tree : Bind )(implicit ctx : Context ) = this
87
86
def prepareForAlternative (tree : Alternative )(implicit ctx : Context ) = this
88
87
def prepareForTypeDef (tree : TypeDef )(implicit ctx : Context ) = this
@@ -114,7 +113,6 @@ object TreeTransforms {
114
113
def transformTry (tree : Try )(implicit ctx : Context , info : TransformerInfo ): Tree = tree
115
114
def transformSeqLiteral (tree : SeqLiteral )(implicit ctx : Context , info : TransformerInfo ): Tree = tree
116
115
def transformTypeTree (tree : TypeTree )(implicit ctx : Context , info : TransformerInfo ): Tree = tree
117
- def transformSelectFromTypeTree (tree : SelectFromTypeTree )(implicit ctx : Context , info : TransformerInfo ): Tree = tree
118
116
def transformBind (tree : Bind )(implicit ctx : Context , info : TransformerInfo ): Tree = tree
119
117
def transformAlternative (tree : Alternative )(implicit ctx : Context , info : TransformerInfo ): Tree = tree
120
118
def transformUnApply (tree : UnApply )(implicit ctx : Context , info : TransformerInfo ): Tree = tree
@@ -276,7 +274,6 @@ object TreeTransforms {
276
274
nxPrepTry = index(transformations, " prepareForTry" )
277
275
nxPrepSeqLiteral = index(transformations, " prepareForSeqLiteral" )
278
276
nxPrepTypeTree = index(transformations, " prepareForTypeTree" )
279
- nxPrepSelectFromTypeTree = index(transformations, " prepareForSelectFromTypeTree" )
280
277
nxPrepBind = index(transformations, " prepareForBind" )
281
278
nxPrepAlternative = index(transformations, " prepareForAlternative" )
282
279
nxPrepUnApply = index(transformations, " prepareForUnApply" )
@@ -307,7 +304,6 @@ object TreeTransforms {
307
304
nxTransTry = index(transformations, " transformTry" )
308
305
nxTransSeqLiteral = index(transformations, " transformSeqLiteral" )
309
306
nxTransTypeTree = index(transformations, " transformTypeTree" )
310
- nxTransSelectFromTypeTree = index(transformations, " transformSelectFromTypeTree" )
311
307
nxTransBind = index(transformations, " transformBind" )
312
308
nxTransAlternative = index(transformations, " transformAlternative" )
313
309
nxTransUnApply = index(transformations, " transformUnApply" )
@@ -348,7 +344,6 @@ object TreeTransforms {
348
344
nxPrepTry = indexUpdate(prev.nxPrepTry, changedTransformationClass, transformationIndex, " prepareForTry" , copy)
349
345
nxPrepSeqLiteral = indexUpdate(prev.nxPrepSeqLiteral, changedTransformationClass, transformationIndex, " prepareForSeqLiteral" , copy)
350
346
nxPrepTypeTree = indexUpdate(prev.nxPrepTypeTree, changedTransformationClass, transformationIndex, " prepareForTypeTree" , copy)
351
- nxPrepSelectFromTypeTree = indexUpdate(prev.nxPrepSelectFromTypeTree, changedTransformationClass, transformationIndex, " prepareForSelectFromTypeTree" , copy)
352
347
nxPrepBind = indexUpdate(prev.nxPrepBind, changedTransformationClass, transformationIndex, " prepareForBind" , copy)
353
348
nxPrepAlternative = indexUpdate(prev.nxPrepAlternative, changedTransformationClass, transformationIndex, " prepareForAlternative" , copy)
354
349
nxPrepUnApply = indexUpdate(prev.nxPrepUnApply, changedTransformationClass, transformationIndex, " prepareForUnApply" , copy)
@@ -378,7 +373,6 @@ object TreeTransforms {
378
373
nxTransTry = indexUpdate(prev.nxTransTry, changedTransformationClass, transformationIndex, " transformTry" , copy)
379
374
nxTransSeqLiteral = indexUpdate(prev.nxTransSeqLiteral, changedTransformationClass, transformationIndex, " transformSeqLiteral" , copy)
380
375
nxTransTypeTree = indexUpdate(prev.nxTransTypeTree, changedTransformationClass, transformationIndex, " transformTypeTree" , copy)
381
- nxTransSelectFromTypeTree = indexUpdate(prev.nxTransSelectFromTypeTree, changedTransformationClass, transformationIndex, " transformSelectFromTypeTree" , copy)
382
376
nxTransBind = indexUpdate(prev.nxTransBind, changedTransformationClass, transformationIndex, " transformBind" , copy)
383
377
nxTransAlternative = indexUpdate(prev.nxTransAlternative, changedTransformationClass, transformationIndex, " transformAlternative" , copy)
384
378
nxTransUnApply = indexUpdate(prev.nxTransUnApply, changedTransformationClass, transformationIndex, " transformUnApply" , copy)
@@ -414,7 +408,6 @@ object TreeTransforms {
414
408
var nxPrepTry : Array [Int ] = _
415
409
var nxPrepSeqLiteral : Array [Int ] = _
416
410
var nxPrepTypeTree : Array [Int ] = _
417
- var nxPrepSelectFromTypeTree : Array [Int ] = _
418
411
var nxPrepBind : Array [Int ] = _
419
412
var nxPrepAlternative : Array [Int ] = _
420
413
var nxPrepUnApply : Array [Int ] = _
@@ -445,7 +438,6 @@ object TreeTransforms {
445
438
var nxTransTry : Array [Int ] = _
446
439
var nxTransSeqLiteral : Array [Int ] = _
447
440
var nxTransTypeTree : Array [Int ] = _
448
- var nxTransSelectFromTypeTree : Array [Int ] = _
449
441
var nxTransBind : Array [Int ] = _
450
442
var nxTransAlternative : Array [Int ] = _
451
443
var nxTransUnApply : Array [Int ] = _
@@ -524,7 +516,6 @@ object TreeTransforms {
524
516
val prepForTry : Mutator [Try ] = (trans, tree, ctx) => trans.prepareForTry(tree)(ctx)
525
517
val prepForSeqLiteral : Mutator [SeqLiteral ] = (trans, tree, ctx) => trans.prepareForSeqLiteral(tree)(ctx)
526
518
val prepForTypeTree : Mutator [TypeTree ] = (trans, tree, ctx) => trans.prepareForTypeTree(tree)(ctx)
527
- val prepForSelectFromTypeTree : Mutator [SelectFromTypeTree ] = (trans, tree, ctx) => trans.prepareForSelectFromTypeTree(tree)(ctx)
528
519
val prepForBind : Mutator [Bind ] = (trans, tree, ctx) => trans.prepareForBind(tree)(ctx)
529
520
val prepForAlternative : Mutator [Alternative ] = (trans, tree, ctx) => trans.prepareForAlternative(tree)(ctx)
530
521
val prepForUnApply : Mutator [UnApply ] = (trans, tree, ctx) => trans.prepareForUnApply(tree)(ctx)
@@ -760,17 +751,6 @@ object TreeTransforms {
760
751
} else tree
761
752
}
762
753
763
- @ tailrec
764
- final private [TreeTransforms ] def goSelectFromTypeTree (tree : SelectFromTypeTree , cur : Int )(implicit ctx : Context , info : TransformerInfo ): Tree = {
765
- if (cur < info.transformers.length) {
766
- val trans = info.transformers(cur)
767
- trans.transformSelectFromTypeTree(tree)(ctx.withPhase(trans.treeTransformPhase), info) match {
768
- case t : SelectFromTypeTree => goSelectFromTypeTree(t, info.nx.nxTransSelectFromTypeTree(cur + 1 ))
769
- case t => transformSingle(t, cur + 1 )
770
- }
771
- } else tree
772
- }
773
-
774
754
@ tailrec
775
755
final private [TreeTransforms ] def goBind (tree : Bind , cur : Int )(implicit ctx : Context , info : TransformerInfo ): Tree = {
776
756
if (cur < info.transformers.length) {
@@ -880,8 +860,6 @@ object TreeTransforms {
880
860
tree match {
881
861
case tree : Ident => goIdent(tree, info.nx.nxTransIdent(cur))
882
862
case tree : Select => goSelect(tree, info.nx.nxTransSelect(cur))
883
- case tree : SelectFromTypeTree =>
884
- goSelectFromTypeTree(tree, info.nx.nxTransSelectFromTypeTree(cur))
885
863
case tree : Bind => goBind(tree, cur)
886
864
case tree : ValDef if ! tree.isEmpty => goValDef(tree, info.nx.nxTransValDef(cur))
887
865
case tree : DefDef => goDefDef(tree, info.nx.nxTransDefDef(cur))
@@ -946,13 +924,6 @@ object TreeTransforms {
946
924
val qual = transform(tree.qualifier, mutatedInfo, cur)
947
925
goSelect(cpy.Select (tree)(qual, tree.name), mutatedInfo.nx.nxTransSelect(cur))
948
926
}
949
- case tree : SelectFromTypeTree =>
950
- implicit val mutatedInfo : TransformerInfo = mutateTransformers(info, prepForSelectFromTypeTree, info.nx.nxPrepSelectFromTypeTree, tree, cur)
951
- if (mutatedInfo eq null ) tree
952
- else {
953
- val qual = transform(tree.qualifier, mutatedInfo, cur)
954
- goSelectFromTypeTree(cpy.SelectFromTypeTree (tree)(qual, tree.name), mutatedInfo.nx.nxTransSelectFromTypeTree(cur))
955
- }
956
927
case tree : Bind =>
957
928
implicit val mutatedInfo : TransformerInfo = mutateTransformers(info, prepForBind, info.nx.nxPrepBind, tree, cur)
958
929
if (mutatedInfo eq null ) tree
0 commit comments