Commit 8e7d60d
authored
Minimize
Encouraged by #26863...
Cuts `tree.symbol` calls when compiling `tests/pos/tuple-filter.scala`
(no compiler options) from 12025 to 7091. (I've left the commit with the
measurement harness + its revert so you can see how I computed this)
<details>
<summary>Calls in main (click to expand)</summary>
<pre>
Total: 12025
3168:
dotty.tools.dotc.ast.tpd$TreeOps$.setDefTree$extension(tpd.scala:1198)
3167:
dotty.tools.dotc.ast.tpd$TreeOps$.ensureHasSym$extension(tpd.scala:1214)
1395:
dotty.tools.dotc.core.SymDenotations$.setParamssFromDefs$$anonfun$1$$anonfun$1(SymDenotations.scala:329)
1395:
dotty.tools.dotc.core.tasty.TreeUnpickler.dotty$tools$dotc$core$tasty$TreeUnpickler$TreeReader$$_$_$_$$anonfun$17(TreeUnpickler.scala:954)
264: dotty.tools.dotc.core.Annotations$.annotClass(Annotations.scala:19)
235:
dotty.tools.dotc.core.tasty.TreeUnpickler$TreeReader.processPackage(TreeUnpickler.scala:858)
165: dotty.tools.dotc.ast.tpd$.localOwner(tpd.scala:647)
92:
dotty.tools.dotc.transform.MegaPhase.transformNamed$1(MegaPhase.scala:256)
91: dotty.tools.dotc.typer.ConstFold$.apply(ConstFold.scala:60)
75: dotty.tools.dotc.inlines.Inlines$.needsInlining(Inlines.scala:123)
64:
dotty.tools.dotc.transform.Dependencies.process(Dependencies.scala:177)
59: dotty.tools.dotc.typer.Typer.adaptNoArgsOther$1(Typer.scala:4934)
57:
dotty.tools.dotc.typer.Checking$.checkAppliedType(Checking.scala:126)
55: dotty.tools.dotc.typer.Typer.adaptNoArgsOther$1(Typer.scala:4943)
48:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.registerNeedsInlining(PostTyper.scala:814)
42:
dotty.tools.dotc.typer.TypeAssigner.assignType$$anonfun$6(TypeAssigner.scala:552)
42:
dotty.tools.dotc.typer.TypeAssigner.$anonfun$13(TypeAssigner.scala:548)
35:
dotty.tools.dotc.core.tasty.TreeUnpickler.dotty$tools$dotc$core$tasty$TreeUnpickler$TreeReader$$_$constructorApply$1(TreeUnpickler.scala:1418)
35:
dotty.tools.dotc.core.tasty.TreeUnpickler$TreeReader.readLengthTree$1(TreeUnpickler.scala:1534)
32:
dotty.tools.dotc.ast.TypedTreeInfo.localSyms$$anonfun$1(TreeInfo.scala:1016)
32:
dotty.tools.dotc.transform.InterceptedMethods.transformRefTree(InterceptedMethods.scala:46)
31:
dotty.tools.dotc.typer.VarianceChecker.dotty$tools$dotc$typer$VarianceChecker$Traverser$$$_$sym$2(VarianceChecker.scala:212)
30:
dotty.tools.dotc.core.tasty.TreePickler.preRegister(TreePickler.scala:85)
29:
dotty.tools.dotc.transform.CheckUnused$.withOriginalName(CheckUnused.scala:551)
29: dotty.tools.dotc.typer.ReTyper.retrieveSym(ReTyper.scala:147)
28:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.checkUsableAsValue(PostTyper.scala:391)
28:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.checkUsableAsValue(PostTyper.scala:386)
27:
dotty.tools.dotc.transform.MegaPhase.transformNamed$1(MegaPhase.scala:268)
24:
dotty.tools.dotc.transform.MegaPhase.transformNamed$1(MegaPhase.scala:272)
23:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transform(PostTyper.scala:581)
21:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.checkNotPackage(PostTyper.scala:407)
19:
dotty.tools.dotc.transform.CrossVersionChecks.transformIdent(CrossVersionChecks.scala:132)
18: dotty.tools.dotc.ast.TypedTreeInfo.refPurity(TreeInfo.scala:708)
18:
dotty.tools.dotc.typer.RefChecks$.checkAnyRefMethodCall(RefChecks.scala:1333)
16:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transform(PostTyper.scala:641)
16:
dotty.tools.dotc.typer.TypeAssigner.$anonfun$2$$anonfun$1(TypeAssigner.scala:50)
16:
dotty.tools.dotc.transform.CollectNullableFields.recordUse(CollectNullableFields.scala:60)
16:
dotty.tools.dotc.transform.ProtectedAccessors$.needsAccessor(ProtectedAccessors.scala:52)
16:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transform(PostTyper.scala:635)
15:
dotty.tools.dotc.core.tasty.TreePickler.pickleDef(TreePickler.scala:371)
14:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.processMemberDef(PostTyper.scala:250)
14:
dotty.tools.dotc.transform.ArrayApply.dotty$tools$dotc$transform$ArrayApply$$isSeqApply(ArrayApply.scala:57)
14:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transform(PostTyper.scala:754)
14:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.registerIfHasMacroAnnotations(PostTyper.scala:819)
14:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transform(PostTyper.scala:751)
14: dotty.tools.dotc.typer.Typer.typedAppliedTypeTree(Typer.scala:2842)
14:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transform(PostTyper.scala:747)
13:
dotty.tools.dotc.transform.SpecializeInlineTraits$$anon$1.transform(SpecializeInlineTraits.scala:59)
13:
dotty.tools.dotc.transform.CrossVersionChecks.checkUnrollMemberDef(CrossVersionChecks.scala:98)
12:
dotty.tools.dotc.transform.Constructors.markUsedPrivateSymbols(Constructors.scala:63)
12:
dotty.tools.dotc.transform.ExpandPrivate.ensurePrivateAccessible(ExpandPrivate.scala:70)
12:
dotty.tools.dotc.transform.CountOuterAccesses.markAccessed(CountOuterAccesses.scala:49)
12: dotty.tools.dotc.transform.Erasure$Typer.isErased(Erasure.scala:518)
12:
dotty.tools.dotc.transform.Erasure$Typer.checkNotErased(Erasure.scala:537)
11: dotty.tools.dotc.transform.LazyVals.$anonfun$1(LazyVals.scala:204)
11:
dotty.tools.dotc.transform.VCInlineMethods.rewireIfNeeded(VCInlineMethods.scala:104)
11:
dotty.tools.dotc.typer.Nullables$.computeNullable(Nullables.scala:403)
10:
dotty.tools.dotc.core.tasty.TreePickler.pickleTree(TreePickler.scala:482)
10: dotty.tools.dotc.ast.Trees$NamedDefTree.srcName(Trees.scala:381)
10:
dotty.tools.dotc.ast.TypedTreeInfo.isStructuralTermSelect$1(TreeInfo.scala:1139)
10:
dotty.tools.dotc.transform.CrossVersionChecks.transformSelect(CrossVersionChecks.scala:137)
9:
dotty.tools.dotc.transform.MegaPhase.mapPackage$1(MegaPhase.scala:396)
9:
dotty.tools.dotc.transform.CapturedVars$$anon$1.traverse(CapturedVars.scala:117)
9:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transformSelect(PostTyper.scala:321)
9:
dotty.tools.dotc.transform.MegaPhase.transformUnnamed$1(MegaPhase.scala:399)
9:
dotty.tools.dotc.transform.CapturedVars.transformIdent(CapturedVars.scala:90)
9:
dotty.tools.dotc.transform.LambdaLift.transformIdent(LambdaLift.scala:291)
9:
dotty.tools.dotc.transform.MegaPhase.transformUnnamed$1(MegaPhase.scala:376)
9:
dotty.tools.dotc.transform.RepeatableAnnotations.transformDef(RepeatableAnnotations.scala:28)
9:
dotty.tools.dotc.transform.ForwardDepChecks.transformIdent(ForwardDepChecks.scala:90)
9:
dotty.tools.dotc.transform.CheckLoopingImplicits.transform(CheckLoopingImplicits.scala:46)
9:
dotty.tools.dotc.transform.CrossVersionChecks.checkDeprecatedOvers(CrossVersionChecks.scala:64)
9:
dotty.tools.dotc.transform.SuperAccessors.transformSelect(SuperAccessors.scala:178)
8:
dotty.tools.dotc.transform.ParamForwarding.transformIfParamAlias(ParamForwarding.scala:43)
8:
dotty.tools.dotc.inlines.Inliner$isElideableExpr$.apply(Inliner.scala:66)
8: dotty.tools.dotc.inlines.Inlines$.inlineCall(Inlines.scala:280)
8:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoadModule(BCodeBodyBuilder.scala:1282)
8:
dotty.tools.dotc.transform.LazyVals.transformLazyVal(LazyVals.scala:75)
8:
dotty.tools.dotc.transform.TypeTestsCasts$.interceptWith$1(TypeTestsCasts.scala:190)
8:
dotty.tools.dotc.inlines.Inliner.countRefs$1$$anonfun$1(Inliner.scala:1294)
7:
dotty.tools.dotc.transform.ElimErasedValueType.transformApply(ElimErasedValueType.scala:75)
7:
dotty.tools.dotc.core.tasty.TreePickler.pickleTree(TreePickler.scala:496)
7:
dotty.tools.dotc.transform.ArrayApply.transformApply(ArrayApply.scala:32)
7:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.scala2LibPatch(PostTyper.scala:834)
7:
dotty.tools.dotc.core.tasty.TreePickler.pickleTree(TreePickler.scala:498)
7:
dotty.tools.dotc.transform.LambdaLift.transformApply(LambdaLift.scala:320)
7:
dotty.tools.dotc.core.tasty.TreePickler.pickleTree(TreePickler.scala:487)
7:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transform(PostTyper.scala:685)
7:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genApply(BCodeBodyBuilder.scala:770)
7:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoadTo(BCodeBodyBuilder.scala:359)
7: dotty.tools.dotc.transform.PureStats.$anonfun$1(PureStats.scala:29)
7:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transform(PostTyper.scala:690)
7:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.processValOrDefDef(PostTyper.scala:264)
6:
dotty.tools.dotc.core.tasty.TreePickler.pickleTree(TreePickler.scala:523)
6:
dotty.tools.dotc.typer.RefChecks.transformValDef(RefChecks.scala:1487)
6:
dotty.tools.dotc.transform.CrossVersionChecks.transformValDef(CrossVersionChecks.scala:109)
6: dotty.tools.dotc.ast.TypedTreeInfo.statPurity(TreeInfo.scala:595)
6:
dotty.tools.dotc.typer.Checking.checkNoTargetNameConflict$$anonfun$1(Checking.scala:1735)
6:
dotty.tools.dotc.transform.CapturedVars.prepareForValDef(CapturedVars.scala:68)
6:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.processValOrDefDef(PostTyper.scala:268)
6: dotty.tools.dotc.ast.TypedTreeInfo.exprPurity(TreeInfo.scala:624)
6:
dotty.tools.dotc.transform.CrossVersionChecks.transformValDef(CrossVersionChecks.scala:110)
6:
dotty.tools.dotc.transform.InlineVals.checkInlineConformant(InlineVals.scala:32)
6:
dotty.tools.dotc.core.tasty.TreePickler.pickleTree(TreePickler.scala:480)
6:
dotty.tools.dotc.transform.TupleOptimizations.transformApply(TupleOptimizations.scala:24)
5:
dotty.tools.dotc.typer.RefChecks.transformValDef(RefChecks.scala:1488)
5: dotty.tools.dotc.transform.Getters.transformValDef(Getters.scala:105)
5:
dotty.tools.dotc.transform.ElimByName.transformValDef(ElimByName.scala:160)
5: dotty.tools.dotc.typer.Typer.typedInfixOp(Typer.scala:3819)
5:
dotty.tools.dotc.transform.CapturedVars.transformValDef(CapturedVars.scala:78)
5:
dotty.tools.dotc.transform.Constructors.transformValDef(Constructors.scala:108)
5: dotty.tools.dotc.transform.MegaPhase.loop$1(MegaPhase.scala:465)
5:
dotty.tools.dotc.transform.ForwardDepChecks.transformValDef(ForwardDepChecks.scala:80)
5:
dotty.tools.dotc.transform.TailRec$TailRecElimination.transform(TailRec.scala:410)
5:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transform(PostTyper.scala:671)
5:
dotty.tools.dotc.transform.TailRec$TailRecElimination.rewriteApply$1(TailRec.scala:312)
5: dotty.tools.dotc.typer.Typer.finalize$1(Typer.scala:4190)
5: dotty.tools.dotc.typer.Typer.traverse$1(Typer.scala:4160)
5:
dotty.tools.dotc.transform.UncacheGivenAliases.transformValDef(UncacheGivenAliases.scala:55)
4:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genApply(BCodeBodyBuilder.scala:855)
4:
dotty.tools.dotc.inlines.Inlines$.isUnapplyExpressionWithDummy$1(Inlines.scala:119)
4:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transform(PostTyper.scala:656)
4: dotty.tools.dotc.typer.ImportInfo$.sym$2(ImportInfo.scala:30)
4:
dotty.tools.dotc.typer.Applications.typedTypeApply(Applications.scala:1618)
4: dotty.tools.dotc.inlines.Inlines$.symbolFromParent(Inlines.scala:126)
4: dotty.tools.dotc.inlines.Inlines$.inlineCall(Inlines.scala:179)
4: dotty.tools.dotc.inlines.Inlines$InlineCall.expand(Inlines.scala:809)
4:
dotty.tools.dotc.inlines.Inliner$isElideableExpr$.apply(Inliner.scala:59)
4:
dotty.tools.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.gen(BCodeSkelBuilder.scala:691)
4:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transform(PostTyper.scala:658)
4:
dotty.tools.dotc.inlines.Inliner$InlineTyper.inlineIfNeeded(Inliner.scala:1211)
4:
dotty.tools.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.genDefDef(BCodeSkelBuilder.scala:820)
4: dotty.tools.dotc.ast.tpd$TreeOps$$anon$4.applyOrElse(tpd.scala:1164)
4:
dotty.tools.backend.ScalaPrimitives.isPrimitive(ScalaPrimitives.scala:401)
4: dotty.tools.dotc.typer.Typer.adaptNoArgs$1(Typer.scala:5021)
4:
dotty.tools.dotc.inlines.Inlines$.needsTransparentInlining(Inlines.scala:169)
4: dotty.tools.dotc.inlines.Inliner.<init>(Inliner.scala:229)
4:
dotty.tools.dotc.transform.FirstTransform.reorder$1(FirstTransform.scala:91)
4:
dotty.tools.dotc.transform.DesugarSpecializedTraits.checkSpecializedTraitRules$$anonfun$1(DesugarSpecializedTraits.scala:367)
4: dotty.tools.dotc.inlines.Inlines$.inlineCall(Inlines.scala:206)
4:
dotty.tools.backend.ScalaPrimitives.isPrimitive(ScalaPrimitives.scala:400)
4: dotty.tools.dotc.inlines.Inlines$.inlineCall(Inlines.scala:261)
4:
dotty.tools.dotc.transform.DesugarSpecializedTraits.checkSpecializedTraitRules$$anonfun$1(DesugarSpecializedTraits.scala:369)
4:
dotty.tools.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.emitNormalMethodBody$1(BCodeSkelBuilder.scala:906)
4:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoadTo(BCodeBodyBuilder.scala:442)
4:
dotty.tools.dotc.inlines.Inliner.computeParamBindings$$anonfun$2(Inliner.scala:388)
4:
dotty.tools.dotc.transform.CrossVersionChecks.transformTypeDef(CrossVersionChecks.scala:124)
4: dotty.tools.dotc.inlines.Inlines$.inlineCall(Inlines.scala:195)
4:
dotty.tools.dotc.transform.CrossVersionChecks.transformTypeDef(CrossVersionChecks.scala:123)
4: dotty.tools.dotc.inlines.Inlines$.inlineCall(Inlines.scala:196)
4:
dotty.tools.dotc.inlines.Inliner$InlinerTreeMap.argSpan$1(Inliner.scala:714)
4:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoadTo(BCodeBodyBuilder.scala:422)
4: dotty.tools.dotc.inlines.Inliner.$anonfun$16(Inliner.scala:1248)
4:
dotty.tools.dotc.inlines.Inliner$InlineableArg$.unapply(Inliner.scala:906)
4: dotty.tools.dotc.inlines.Inliner.$anonfun$19(Inliner.scala:1332)
4:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoadTo(BCodeBodyBuilder.scala:326)
4:
dotty.tools.dotc.transform.FirstTransform.transformTypeDef(FirstTransform.scala:214)
4:
dotty.tools.dotc.inlines.InlineReducer.normalizeBinding(InlineReducer.scala:139)
4:
dotty.tools.dotc.transform.TailRec$TailRecElimination.rewriteApply$1(TailRec.scala:315)
4:
dotty.tools.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.genDefDef(BCodeSkelBuilder.scala:817)
3:
dotty.tools.dotc.transform.RestoreScopes.restoreScope$$anonfun$1(RestoreScopes.scala:38)
3:
dotty.tools.dotc.transform.localopt.StringInterpolatorOpt.transformApply(StringInterpolatorOpt.scala:131)
3:
dotty.tools.dotc.transform.FirstTransform.transformDefDef(FirstTransform.scala:135)
3:
dotty.tools.dotc.core.tasty.TreePickler.pickleTree(TreePickler.scala:511)
3:
dotty.tools.dotc.transform.CheckNoSuperThis.transformDefDef(CheckNoSuperThis.scala:27)
3:
dotty.tools.dotc.transform.NonLocalReturns.transformDefDef(NonLocalReturns.scala:94)
3: dotty.tools.dotc.transform.TailRec.transformDefDef(TailRec.scala:117)
3: dotty.tools.dotc.transform.Memoize.transformDefDef(Memoize.scala:102)
3: dotty.tools.dotc.ast.TypedTreeInfo.exprPurity(TreeInfo.scala:619)
3:
dotty.tools.dotc.transform.CompleteJavaEnums.transformDefDef(CompleteJavaEnums.scala:90)
3:
dotty.tools.dotc.transform.ElimRepeated.transformDefDef(ElimRepeated.scala:177)
3: dotty.tools.dotc.ast.tpd$.desugarIdent(tpd.scala:1515)
3:
dotty.tools.dotc.transform.Erasure$Typer.typedSelect(Erasure.scala:668)
3:
dotty.tools.dotc.transform.LambdaLift.transformSelect(LambdaLift.scala:309)
3:
dotty.tools.dotc.transform.ExplicitOuter$OuterOps$.args$extension(ExplicitOuter.scala:431)
3:
dotty.tools.dotc.transform.ElimOpaque.transformApply(ElimOpaque.scala:65)
3:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transform(PostTyper.scala:717)
3:
dotty.tools.dotc.transform.CrossVersionChecks.transformDefDef(CrossVersionChecks.scala:117)
3: dotty.tools.dotc.typer.Typer.traverse$1(Typer.scala:4156)
3:
dotty.tools.dotc.transform.MethodSpecialization$.unapply(DesugarSpecializedTraits.scala:961)
3:
dotty.tools.dotc.transform.ExpandPrivate.transformDefDef(ExpandPrivate.scala:114)
3:
dotty.tools.dotc.transform.CrossVersionChecks.transformDefDef(CrossVersionChecks.scala:116)
3:
dotty.tools.dotc.transform.ResolveSuper.transformDefDef(ResolveSuper.scala:64)
3:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transformSelect(PostTyper.scala:323)
3:
dotty.tools.dotc.typer.RefChecks.transformDefDef(RefChecks.scala:1502)
3:
dotty.tools.dotc.transform.ExplicitOuter$OuterOps$.args$extension(ExplicitOuter.scala:430)
3:
dotty.tools.dotc.transform.DesugarSpecializedTraits.collectReferencedSpecializations$$anonfun$1$$anonfun$1(DesugarSpecializedTraits.scala:561)
3:
dotty.tools.dotc.core.tasty.TreePickler.pickleTree(TreePickler.scala:507)
3:
dotty.tools.dotc.transform.DesugarSpecializedTraits.collectReferencedSpecializations$$anonfun$1$$anonfun$1(DesugarSpecializedTraits.scala:559)
3:
dotty.tools.dotc.transform.SelectStatic.transformSelect(SelectStatic.scala:53)
3: dotty.tools.dotc.ast.TypedTreeInfo.exprPurity(TreeInfo.scala:638)
3:
dotty.tools.dotc.transform.SimplifySynchronized.transformDefDef(SimplifySynchronized.scala:27)
3:
dotty.tools.dotc.transform.InterceptedMethods.transformApply(InterceptedMethods.scala:86)
3:
dotty.tools.dotc.transform.ExtensionMethods.transformDefDef(ExtensionMethods.scala:159)
3:
dotty.tools.dotc.ast.TypedTreeInfo.decomposeTemplateBody$$anonfun$1(TreeInfo.scala:898)
3:
dotty.tools.dotc.transform.DesugarSpecializedTraits.$anonfun$23(DesugarSpecializedTraits.scala:450)
3:
dotty.tools.dotc.transform.ArrayConstructors.transformApply(ArrayConstructors.scala:35)
3: dotty.tools.dotc.ast.TypedTreeInfo.isPureApply(TreeInfo.scala:696)
3: dotty.tools.dotc.ast.TypedTreeInfo.splitAtSuper(TreeInfo.scala:1158)
3: dotty.tools.dotc.ast.TypedTreeInfo.isPureApply(TreeInfo.scala:697)
3:
dotty.tools.dotc.transform.LambdaLift.transformDefDef(LambdaLift.scala:326)
3:
dotty.tools.dotc.transform.LambdaLift$Lifter$$anon$1.process(LambdaLift.scala:46)
3:
dotty.tools.dotc.transform.InlinePatterns.transformApply(InlinePatterns.scala:40)
3:
dotty.tools.dotc.transform.ArrayConstructors.transformApply(ArrayConstructors.scala:39)
3:
dotty.tools.dotc.transform.RestoreScopes.restoreScope$$anonfun$1(RestoreScopes.scala:39)
2:
dotty.tools.dotc.ast.Trees$Instance$TreeMap.transform(Trees.scala:1639)
2:
dotty.tools.dotc.transform.Erasure$.dotty$tools$dotc$transform$Erasure$Typer$$_$_$_$$anonfun$14(Erasure.scala:1095)
2:
dotty.tools.dotc.transform.CheckStatic.transformTemplate$$anonfun$1(CheckStatic.scala:40)
2:
dotty.tools.dotc.typer.Applications.widenEnumCase(Applications.scala:1696)
2:
dotty.tools.dotc.ast.TypedTreeInfo.decomposeTemplateBody$$anonfun$1(TreeInfo.scala:900)
2:
dotty.tools.dotc.transform.HoistSuperArgs$Hoister.hoistSuperArgsFromConstr(HoistSuperArgs.scala:213)
2:
dotty.tools.dotc.transform.DropOuterAccessors.dropOuterAccessor$1(DropOuterAccessors.scala:44)
2: dotty.tools.dotc.typer.Typer.hasSameParent$1(Typer.scala:3367)
2:
dotty.tools.backend.jvm.BCodeSkelBuilder.dotty$tools$backend$jvm$BCodeSkelBuilder$PlainSkelBuilder$$_$_$_$$anonfun$2(BCodeSkelBuilder.scala:204)
2:
dotty.tools.dotc.transform.Constructors.splitStats$1(Constructors.scala:245)
2:
dotty.tools.dotc.transform.ContextFunctionResults$.annotateContextResults(ContextFunctionResults.scala:30)
2:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genApply(BCodeBodyBuilder.scala:815)
2: dotty.tools.dotc.typer.Typer.finalize$1(Typer.scala:4191)
2:
dotty.tools.dotc.typer.Applications.realApply$1(Applications.scala:1448)
2:
dotty.tools.dotc.transform.Erasure$Typer.isPrimaryConsOfSpecTrait$1(Erasure.scala:1099)
2: dotty.tools.dotc.typer.Typer.typedPackageDef(Typer.scala:3682)
2:
dotty.tools.dotc.transform.PruneInlinedMethods.$anonfun$2(PruneInlinedMethods.scala:33)
2:
dotty.tools.dotc.ast.TypedTreeInfo.topLevelClasses(TreeInfo.scala:1048)
2:
dotty.tools.dotc.transform.PruneInlineTraits.$anonfun$2(PruneInlineTraits.scala:37)
2:
dotty.tools.dotc.transform.Erasure$Typer.addRetainedInlineBodies$$anonfun$1(Erasure.scala:1048)
2:
dotty.tools.dotc.transform.PruneInlineTraits.$anonfun$2(PruneInlineTraits.scala:38)
2: dotty.tools.dotc.typer.Typer.typedClassDef(Typer.scala:3533)
2:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoadTo(BCodeBodyBuilder.scala:412)
2:
dotty.tools.dotc.transform.SuperAccessors.wrapDefDef(SuperAccessors.scala:229)
2:
dotty.tools.dotc.transform.CheckLoopingImplicits.checkNotLooping$1(CheckLoopingImplicits.scala:70)
1:
dotty.tools.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.genPlainClass(BCodeSkelBuilder.scala:165)
1:
dotty.tools.dotc.transform.Specialization$.unapply(DesugarSpecializedTraits.scala:900)
1:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoadTo(BCodeBodyBuilder.scala:401)
1: dotty.tools.dotc.ast.TypedTreeInfo.sliceTopLevel(TreeInfo.scala:1065)
1:
dotty.tools.dotc.transform.SpecializeApplyMethods.transformTemplate(SpecializeApplyMethods.scala:89)
1:
dotty.tools.dotc.transform.MacroTransform$Transformer.transform(MacroTransform.scala:49)
1:
dotty.tools.dotc.transform.CompleteJavaEnums.transformTemplate(CompleteJavaEnums.scala:192)
1:
dotty.tools.dotc.ast.MainProxies$.mainMethods$1$$anonfun$1(MainProxies.scala:33)
1:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genStat(BCodeBodyBuilder.scala:106)
1:
dotty.tools.dotc.core.tasty.TreePickler.pickleTree(TreePickler.scala:669)
1:
dotty.tools.dotc.transform.ResolveSuper.transformTemplate(ResolveSuper.scala:46)
1:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoadTo(BCodeBodyBuilder.scala:403)
1:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genStat(BCodeBodyBuilder.scala:96)
1:
dotty.tools.dotc.transform.Mixin.transformConstructor$1(Mixin.scala:245)
1:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genApply(BCodeBodyBuilder.scala:808)
1:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genStat(BCodeBodyBuilder.scala:101)
1: dotty.tools.dotc.typer.Checking$$anon$7.traverse(Checking.scala:988)
1:
dotty.tools.dotc.transform.FunctionXXLForwarders.transformTemplate(FunctionXXLForwarders.scala:44)
1:
dotty.tools.dotc.transform.SyntheticMembers.checkInlining$$anonfun$1$$anonfun$1(SyntheticMembers.scala:735)
1: dotty.tools.dotc.transform.Mixin.$anonfun$1(Mixin.scala:249)
1:
dotty.tools.dotc.transform.ProtectedAccessors.transformTemplate(ProtectedAccessors.scala:102)
1:
dotty.tools.dotc.transform.Mixin.transformConstructor$1(Mixin.scala:244)
1: dotty.tools.dotc.ast.TypedTreeInfo.sliceTopLevel(TreeInfo.scala:1060)
1:
dotty.tools.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.paramTKs(BCodeSkelBuilder.scala:150)
1:
dotty.tools.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.genPlainClass(BCodeSkelBuilder.scala:288)
1:
dotty.tools.dotc.transform.MoveStatics.$anonfun$2(MoveStatics.scala:44)
1:
dotty.tools.dotc.transform.FirstTransform.reorder$1(FirstTransform.scala:92)
1: dotty.tools.dotc.typer.Typer.typedClassDef(Typer.scala:3570)
1: dotty.tools.dotc.typer.Typer.traverse$1(Typer.scala:4146)
1:
dotty.tools.dotc.transform.LambdaLift$Lifter$$anon$1.process(LambdaLift.scala:51)
1:
dotty.tools.dotc.transform.CheckNoSuperThis.transformDefDef(CheckNoSuperThis.scala:31)
1:
dotty.tools.dotc.transform.DesugarSpecializedTraits.collectReferencedSpecializations$$anonfun$1$$anonfun$1(DesugarSpecializedTraits.scala:470)
1: dotty.tools.dotc.typer.ReTyper.localDummy(ReTyper.scala:145)
1:
dotty.tools.dotc.typer.RefChecks.transformTypeDef(RefChecks.scala:1513)
1:
dotty.tools.dotc.transform.MoveStatics.$anonfun$1(MoveStatics.scala:43)
1: dotty.tools.dotc.transform.Mixin.transformTemplate(Mixin.scala:203)
1:
dotty.tools.dotc.transform.RestoreScopes.restoreScope(RestoreScopes.scala:46)
1:
dotty.tools.dotc.transform.SyntheticMembers.checkInlining$$anonfun$1$$anonfun$1(SyntheticMembers.scala:736)
1:
dotty.tools.dotc.transform.Constructors.splitStats$1(Constructors.scala:283)
1:
dotty.tools.dotc.transform.CheckLoopingImplicits.checkNotSelfRef$1(CheckLoopingImplicits.scala:49)
1:
dotty.tools.dotc.core.tasty.TreePickler.pickleTree(TreePickler.scala:675)
1:
dotty.tools.dotc.transform.HoistSuperArgs.transformTypeDef(HoistSuperArgs.scala:232)
1:
dotty.tools.dotc.transform.Dependencies.process(Dependencies.scala:258)
1: dotty.tools.backend.jvm.CodeGen.genClassDef$1(CodeGen.scala:36)
1:
dotty.tools.dotc.transform.TreeExtractors$BinaryOp$.unapply(TreeExtractors.scala:16)
1:
dotty.tools.dotc.transform.Constructors$intoConstr$2$.apply(Constructors.scala:195)
1:
dotty.tools.dotc.transform.ElimErasedValueType.prepareForTypeDef(ElimErasedValueType.scala:130)
1:
dotty.tools.dotc.transform.TailRec$TailRecElimination.transform(TailRec.scala:418)
1:
dotty.tools.dotc.ast.MainProxies$.mainMethods$1$$anonfun$1(MainProxies.scala:35)
1:
dotty.tools.dotc.ast.tpd$TreeMapWithPreciseStatContexts.loop$2(tpd.scala:1285)
1:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoadTo(BCodeBodyBuilder.scala:400)
1:
dotty.tools.dotc.transform.LambdaLift.transformTypeDef(LambdaLift.scala:350)
1:
dotty.tools.dotc.transform.RestoreScopes.restoreScope(RestoreScopes.scala:42)
1:
dotty.tools.dotc.transform.ExtensionMethods.transformTemplate(ExtensionMethods.scala:151)
</pre>
</details>
<details>
<summary>Calls in PR (click to expand)</summary>
<pre>
Total: 7091
3168:
dotty.tools.dotc.ast.tpd$TreeOps$.ensureHasSym$extension(tpd.scala:1221)
1395:
dotty.tools.dotc.core.tasty.TreeUnpickler.dotty$tools$dotc$core$tasty$TreeUnpickler$TreeReader$$_$_$_$$anonfun$17(TreeUnpickler.scala:953)
235:
dotty.tools.dotc.core.tasty.TreeUnpickler$TreeReader.processPackage(TreeUnpickler.scala:858)
165: dotty.tools.dotc.ast.tpd$.localOwner(tpd.scala:647)
132: dotty.tools.dotc.core.Annotations$.annotClass(Annotations.scala:19)
92:
dotty.tools.dotc.transform.MegaPhase.transformNamed$1(MegaPhase.scala:256)
91: dotty.tools.dotc.typer.ConstFold$.apply(ConstFold.scala:60)
75: dotty.tools.dotc.inlines.Inlines$.needsInlining(Inlines.scala:123)
64:
dotty.tools.dotc.transform.Dependencies.process(Dependencies.scala:177)
59: dotty.tools.dotc.typer.Typer.adaptNoArgsOther$1(Typer.scala:4934)
57:
dotty.tools.dotc.typer.Checking$.checkAppliedType(Checking.scala:126)
55: dotty.tools.dotc.typer.Typer.adaptNoArgsOther$1(Typer.scala:4943)
48:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.registerNeedsInlining(PostTyper.scala:816)
42:
dotty.tools.dotc.typer.TypeAssigner.assignType$$anonfun$6(TypeAssigner.scala:552)
42:
dotty.tools.dotc.typer.TypeAssigner.$anonfun$13(TypeAssigner.scala:548)
35:
dotty.tools.dotc.core.tasty.TreeUnpickler$TreeReader.readLengthTree$1(TreeUnpickler.scala:1533)
35:
dotty.tools.dotc.core.tasty.TreeUnpickler.dotty$tools$dotc$core$tasty$TreeUnpickler$TreeReader$$_$constructorApply$1(TreeUnpickler.scala:1418)
29:
dotty.tools.dotc.transform.CheckUnused$.withOriginalName(CheckUnused.scala:551)
29: dotty.tools.dotc.typer.ReTyper.retrieveSym(ReTyper.scala:147)
28:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.checkUsableAsValue(PostTyper.scala:386)
27:
dotty.tools.dotc.transform.MegaPhase.transformNamed$1(MegaPhase.scala:268)
24:
dotty.tools.dotc.transform.MegaPhase.transformNamed$1(MegaPhase.scala:272)
23:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transform(PostTyper.scala:582)
21:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.checkNotPackage(PostTyper.scala:408)
19:
dotty.tools.dotc.transform.CrossVersionChecks.transformIdent(CrossVersionChecks.scala:127)
18:
dotty.tools.dotc.ast.tpd$TreeOps$.setDefTree$extension(tpd.scala:1198)
18: dotty.tools.dotc.ast.TypedTreeInfo.refPurity(TreeInfo.scala:708)
16:
dotty.tools.dotc.ast.TypedTreeInfo.localSyms$$anonfun$1(TreeInfo.scala:1017)
16:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transform(PostTyper.scala:642)
16:
dotty.tools.dotc.typer.TypeAssigner.$anonfun$2$$anonfun$1(TypeAssigner.scala:50)
16:
dotty.tools.dotc.transform.CollectNullableFields.recordUse(CollectNullableFields.scala:60)
16:
dotty.tools.dotc.transform.ProtectedAccessors$.needsAccessor(ProtectedAccessors.scala:52)
16:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transform(PostTyper.scala:636)
16:
dotty.tools.dotc.transform.InterceptedMethods.transformRefTree(InterceptedMethods.scala:46)
15:
dotty.tools.dotc.core.tasty.TreePickler.preRegister(TreePickler.scala:84)
15:
dotty.tools.dotc.core.tasty.TreePickler.pickleDef(TreePickler.scala:369)
14:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.processMemberDef(PostTyper.scala:250)
14:
dotty.tools.dotc.transform.ArrayApply.dotty$tools$dotc$transform$ArrayApply$$isSeqApply(ArrayApply.scala:57)
14:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.registerIfHasMacroAnnotations(PostTyper.scala:821)
14:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transform(PostTyper.scala:748)
14: dotty.tools.dotc.typer.Typer.typedAppliedTypeTree(Typer.scala:2842)
13:
dotty.tools.dotc.transform.SpecializeInlineTraits$$anon$1.transform(SpecializeInlineTraits.scala:59)
13:
dotty.tools.dotc.transform.CrossVersionChecks.checkUnrollMemberDef(CrossVersionChecks.scala:96)
12:
dotty.tools.dotc.transform.Constructors.markUsedPrivateSymbols(Constructors.scala:63)
12: dotty.tools.dotc.transform.Erasure$Typer.isErased(Erasure.scala:516)
12:
dotty.tools.dotc.transform.ExpandPrivate.ensurePrivateAccessible(ExpandPrivate.scala:70)
12:
dotty.tools.dotc.transform.CountOuterAccesses.markAccessed(CountOuterAccesses.scala:49)
12:
dotty.tools.dotc.transform.Erasure$Typer.checkNotErased(Erasure.scala:537)
11: dotty.tools.dotc.transform.LazyVals.$anonfun$1(LazyVals.scala:204)
11:
dotty.tools.dotc.transform.VCInlineMethods.rewireIfNeeded(VCInlineMethods.scala:104)
11:
dotty.tools.dotc.typer.Nullables$.computeNullable(Nullables.scala:403)
10: dotty.tools.dotc.ast.Trees$NamedDefTree.srcName(Trees.scala:382)
10:
dotty.tools.dotc.ast.TypedTreeInfo.isStructuralTermSelect$1(TreeInfo.scala:1141)
10:
dotty.tools.dotc.core.tasty.TreePickler.pickleTree(TreePickler.scala:475)
10:
dotty.tools.dotc.transform.CrossVersionChecks.transformSelect(CrossVersionChecks.scala:132)
9:
dotty.tools.dotc.transform.CrossVersionChecks.checkDeprecatedOvers(CrossVersionChecks.scala:62)
9:
dotty.tools.dotc.transform.MegaPhase.mapPackage$1(MegaPhase.scala:396)
9:
dotty.tools.dotc.transform.CapturedVars$$anon$1.traverse(CapturedVars.scala:117)
9:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transformSelect(PostTyper.scala:321)
9:
dotty.tools.dotc.transform.MegaPhase.transformUnnamed$1(MegaPhase.scala:399)
9:
dotty.tools.dotc.transform.CapturedVars.transformIdent(CapturedVars.scala:90)
9:
dotty.tools.dotc.typer.RefChecks$.checkAnyRefMethodCall(RefChecks.scala:1333)
9:
dotty.tools.dotc.transform.LambdaLift.transformIdent(LambdaLift.scala:291)
9:
dotty.tools.dotc.transform.MegaPhase.transformUnnamed$1(MegaPhase.scala:376)
9:
dotty.tools.dotc.transform.RepeatableAnnotations.transformDef(RepeatableAnnotations.scala:28)
9:
dotty.tools.dotc.transform.ForwardDepChecks.transformIdent(ForwardDepChecks.scala:90)
9:
dotty.tools.dotc.transform.CheckLoopingImplicits.transform(CheckLoopingImplicits.scala:46)
9:
dotty.tools.dotc.transform.SuperAccessors.transformSelect(SuperAccessors.scala:178)
8:
dotty.tools.dotc.transform.ParamForwarding.transformIfParamAlias(ParamForwarding.scala:43)
8:
dotty.tools.dotc.inlines.Inliner.countRefs$1$$anonfun$1(Inliner.scala:1297)
8:
dotty.tools.dotc.transform.LazyVals.transformLazyVal(LazyVals.scala:75)
8:
dotty.tools.dotc.transform.TypeTestsCasts$.interceptWith$1(TypeTestsCasts.scala:190)
7:
dotty.tools.dotc.typer.VarianceChecker$Traverser$.traverse(VarianceChecker.scala:213)
7:
dotty.tools.dotc.transform.ElimErasedValueType.transformApply(ElimErasedValueType.scala:75)
7:
dotty.tools.dotc.transform.ArrayApply.transformApply(ArrayApply.scala:32)
7:
dotty.tools.dotc.transform.LambdaLift.transformApply(LambdaLift.scala:320)
7:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.scala2LibPatch(PostTyper.scala:836)
7:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genApply(BCodeBodyBuilder.scala:771)
7:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transform(PostTyper.scala:686)
7:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoadTo(BCodeBodyBuilder.scala:359)
7: dotty.tools.dotc.transform.PureStats.$anonfun$1(PureStats.scala:29)
7:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.processValOrDefDef(PostTyper.scala:264)
6: dotty.tools.dotc.ast.TypedTreeInfo.statPurity(TreeInfo.scala:595)
6:
dotty.tools.dotc.typer.Checking.checkNoTargetNameConflict$$anonfun$1(Checking.scala:1735)
6:
dotty.tools.dotc.transform.CapturedVars.prepareForValDef(CapturedVars.scala:68)
6:
dotty.tools.dotc.typer.RefChecks.transformValDef(RefChecks.scala:1488)
6:
dotty.tools.dotc.transform.CrossVersionChecks.transformValDef(CrossVersionChecks.scala:107)
6: dotty.tools.dotc.ast.TypedTreeInfo.exprPurity(TreeInfo.scala:624)
6:
dotty.tools.dotc.transform.InlineVals.checkInlineConformant(InlineVals.scala:32)
5: dotty.tools.dotc.transform.Getters.transformValDef(Getters.scala:105)
5:
dotty.tools.dotc.transform.ElimByName.transformValDef(ElimByName.scala:160)
5: dotty.tools.dotc.typer.Typer.typedInfixOp(Typer.scala:3819)
5:
dotty.tools.dotc.transform.CapturedVars.transformValDef(CapturedVars.scala:78)
5:
dotty.tools.dotc.transform.Constructors.transformValDef(Constructors.scala:108)
5: dotty.tools.dotc.transform.MegaPhase.loop$1(MegaPhase.scala:465)
5:
dotty.tools.dotc.transform.ForwardDepChecks.transformValDef(ForwardDepChecks.scala:80)
5:
dotty.tools.dotc.transform.TailRec$TailRecElimination.transform(TailRec.scala:410)
5:
dotty.tools.dotc.transform.TailRec$TailRecElimination.rewriteApply$1(TailRec.scala:312)
5:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transform(PostTyper.scala:672)
5: dotty.tools.dotc.typer.Typer.finalize$1(Typer.scala:4190)
5: dotty.tools.dotc.typer.Typer.traverse$1(Typer.scala:4160)
5:
dotty.tools.dotc.transform.UncacheGivenAliases.transformValDef(UncacheGivenAliases.scala:55)
4: dotty.tools.dotc.inlines.Inliner.<init>(Inliner.scala:230)
4:
dotty.tools.dotc.inlines.Inlines$.isUnapplyExpressionWithDummy$1(Inlines.scala:119)
4: dotty.tools.dotc.typer.ImportInfo$.sym$2(ImportInfo.scala:30)
4:
dotty.tools.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.gen(BCodeSkelBuilder.scala:690)
4:
dotty.tools.dotc.typer.Applications.typedTypeApply(Applications.scala:1618)
4: dotty.tools.dotc.inlines.Inlines$.symbolFromParent(Inlines.scala:126)
4:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transform(PostTyper.scala:657)
4: dotty.tools.dotc.inlines.Inlines$.inlineCall(Inlines.scala:179)
4:
dotty.tools.dotc.inlines.Inliner$isElideableExpr$.apply(Inliner.scala:59)
4:
dotty.tools.dotc.inlines.Inliner$InlineableArg$.unapply(Inliner.scala:909)
4:
dotty.tools.dotc.transform.CrossVersionChecks.transformTypeDef(CrossVersionChecks.scala:119)
4:
dotty.tools.dotc.inlines.Inliner$isElideableExpr$.apply(Inliner.scala:66)
4: dotty.tools.dotc.ast.tpd$TreeOps$$anon$4.applyOrElse(tpd.scala:1164)
4: dotty.tools.dotc.inlines.Inliner.$anonfun$16(Inliner.scala:1251)
4: dotty.tools.dotc.typer.Typer.adaptNoArgs$1(Typer.scala:5021)
4:
dotty.tools.dotc.inlines.Inlines$.needsTransparentInlining(Inlines.scala:169)
4:
dotty.tools.dotc.transform.FirstTransform.reorder$1(FirstTransform.scala:91)
4:
dotty.tools.backend.ScalaPrimitives.isPrimitive(ScalaPrimitives.scala:400)
4:
dotty.tools.dotc.inlines.Inliner.computeParamBindings$$anonfun$2(Inliner.scala:389)
4:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoadTo(BCodeBodyBuilder.scala:443)
4:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transform(PostTyper.scala:659)
4: dotty.tools.dotc.inlines.Inlines$InlineCall.expand(Inlines.scala:810)
4: dotty.tools.dotc.inlines.Inliner.$anonfun$19(Inliner.scala:1335)
4: dotty.tools.dotc.inlines.Inlines$.inlineCall(Inlines.scala:194)
4:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoadModule(BCodeBodyBuilder.scala:1282)
4:
dotty.tools.dotc.inlines.Inliner$InlineTyper.inlineIfNeeded(Inliner.scala:1214)
4:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoadTo(BCodeBodyBuilder.scala:423)
4:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoadTo(BCodeBodyBuilder.scala:326)
4:
dotty.tools.dotc.inlines.Inliner$InlinerTreeMap.argSpan$1(Inliner.scala:716)
4:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genApply(BCodeBodyBuilder.scala:856)
4:
dotty.tools.dotc.transform.FirstTransform.transformTypeDef(FirstTransform.scala:214)
4:
dotty.tools.dotc.inlines.InlineReducer.normalizeBinding(InlineReducer.scala:139)
4:
dotty.tools.dotc.transform.TailRec$TailRecElimination.rewriteApply$1(TailRec.scala:315)
4:
dotty.tools.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.genDefDef(BCodeSkelBuilder.scala:817)
3:
dotty.tools.dotc.transform.RestoreScopes.restoreScope$$anonfun$1(RestoreScopes.scala:38)
3:
dotty.tools.dotc.transform.localopt.StringInterpolatorOpt.transformApply(StringInterpolatorOpt.scala:131)
3:
dotty.tools.dotc.typer.RefChecks.transformDefDef(RefChecks.scala:1503)
3:
dotty.tools.dotc.transform.DesugarSpecializedTraits.collectReferencedSpecializations$$anonfun$1$$anonfun$1(DesugarSpecializedTraits.scala:563)
3:
dotty.tools.dotc.transform.FirstTransform.transformDefDef(FirstTransform.scala:135)
3:
dotty.tools.dotc.transform.CheckNoSuperThis.transformDefDef(CheckNoSuperThis.scala:27)
3:
dotty.tools.dotc.transform.NonLocalReturns.transformDefDef(NonLocalReturns.scala:94)
3: dotty.tools.dotc.transform.TailRec.transformDefDef(TailRec.scala:117)
3: dotty.tools.dotc.transform.Memoize.transformDefDef(Memoize.scala:102)
3:
dotty.tools.dotc.transform.MethodSpecialization$.unapply(DesugarSpecializedTraits.scala:965)
3: dotty.tools.dotc.ast.TypedTreeInfo.exprPurity(TreeInfo.scala:619)
3:
dotty.tools.dotc.transform.CompleteJavaEnums.transformDefDef(CompleteJavaEnums.scala:90)
3: dotty.tools.dotc.ast.tpd$.desugarIdent(tpd.scala:1524)
3:
dotty.tools.dotc.transform.CrossVersionChecks.transformDefDef(CrossVersionChecks.scala:113)
3:
dotty.tools.dotc.transform.DesugarSpecializedTraits.collectReferencedSpecializations$$anonfun$1$$anonfun$1(DesugarSpecializedTraits.scala:565)
3:
dotty.tools.dotc.transform.ElimRepeated.transformDefDef(ElimRepeated.scala:177)
3:
dotty.tools.dotc.transform.Erasure$Typer.typedSelect(Erasure.scala:668)
3:
dotty.tools.dotc.transform.ExplicitOuter$OuterOps$.args$extension(ExplicitOuter.scala:431)
3:
dotty.tools.dotc.transform.ElimOpaque.transformApply(ElimOpaque.scala:65)
3: dotty.tools.dotc.typer.Typer.traverse$1(Typer.scala:4156)
3:
dotty.tools.dotc.transform.ExpandPrivate.transformDefDef(ExpandPrivate.scala:114)
3: dotty.tools.dotc.ast.TypedTreeInfo.splitAtSuper(TreeInfo.scala:1160)
3:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transform(PostTyper.scala:718)
3:
dotty.tools.dotc.transform.ResolveSuper.transformDefDef(ResolveSuper.scala:64)
3:
dotty.tools.dotc.core.tasty.TreePickler.pickleTree(TreePickler.scala:505)
3:
dotty.tools.dotc.transform.DesugarSpecializedTraits.checkSpecializedTraitRules$$anonfun$1(DesugarSpecializedTraits.scala:368)
3:
dotty.tools.dotc.transform.PostTyper$PostTyperTransformer.transformSelect(PostTyper.scala:323)
3:
dotty.tools.dotc.transform.ExplicitOuter$OuterOps$.args$extension(ExplicitOuter.scala:430)
3:
dotty.tools.dotc.transform.SelectStatic.transformSelect(SelectStatic.scala:53)
3: dotty.tools.dotc.ast.TypedTreeInfo.exprPurity(TreeInfo.scala:638)
3:
dotty.tools.dotc.transform.SimplifySynchronized.transformDefDef(SimplifySynchronized.scala:27)
3:
dotty.tools.dotc.transform.InterceptedMethods.transformApply(InterceptedMethods.scala:86)
3:
dotty.tools.dotc.transform.ExtensionMethods.transformDefDef(ExtensionMethods.scala:159)
3:
dotty.tools.dotc.ast.TypedTreeInfo.decomposeTemplateBody$$anonfun$1(TreeInfo.scala:898)
3:
dotty.tools.dotc.transform.ArrayConstructors.transformApply(ArrayConstructors.scala:35)
3: dotty.tools.dotc.ast.TypedTreeInfo.isPureApply(TreeInfo.scala:696)
3: dotty.tools.dotc.ast.TypedTreeInfo.isPureApply(TreeInfo.scala:697)
3:
dotty.tools.dotc.transform.LambdaLift.transformDefDef(LambdaLift.scala:326)
3:
dotty.tools.dotc.transform.LambdaLift$Lifter$$anon$1.process(LambdaLift.scala:46)
3:
dotty.tools.dotc.transform.InlinePatterns.transformApply(InlinePatterns.scala:40)
3:
dotty.tools.dotc.transform.DesugarSpecializedTraits.$anonfun$23(DesugarSpecializedTraits.scala:454)
3:
dotty.tools.dotc.transform.ArrayConstructors.transformApply(ArrayConstructors.scala:39)
3:
dotty.tools.dotc.transform.TupleOptimizations.transformApply(TupleOptimizations.scala:24)
3:
dotty.tools.dotc.transform.RestoreScopes.restoreScope$$anonfun$1(RestoreScopes.scala:39)
2:
dotty.tools.dotc.transform.Erasure$.dotty$tools$dotc$transform$Erasure$Typer$$_$_$_$$anonfun$14(Erasure.scala:1095)
2:
dotty.tools.dotc.transform.CheckStatic.transformTemplate$$anonfun$1(CheckStatic.scala:40)
2:
dotty.tools.dotc.typer.Applications.widenEnumCase(Applications.scala:1696)
2:
dotty.tools.dotc.ast.TypedTreeInfo.decomposeTemplateBody$$anonfun$1(TreeInfo.scala:900)
2:
dotty.tools.dotc.transform.HoistSuperArgs$Hoister.hoistSuperArgsFromConstr(HoistSuperArgs.scala:213)
2:
dotty.tools.dotc.transform.DropOuterAccessors.dropOuterAccessor$1(DropOuterAccessors.scala:44)
2:
dotty.tools.dotc.ast.TypedTreeInfo.topLevelClasses(TreeInfo.scala:1050)
2: dotty.tools.dotc.typer.Typer.hasSameParent$1(Typer.scala:3367)
2:
dotty.tools.backend.jvm.BCodeSkelBuilder.dotty$tools$backend$jvm$BCodeSkelBuilder$PlainSkelBuilder$$_$_$_$$anonfun$2(BCodeSkelBuilder.scala:204)
2:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genApply(BCodeBodyBuilder.scala:816)
2:
dotty.tools.dotc.transform.Constructors.splitStats$1(Constructors.scala:245)
2:
dotty.tools.dotc.transform.ContextFunctionResults$.annotateContextResults(ContextFunctionResults.scala:30)
2: dotty.tools.dotc.typer.Typer.finalize$1(Typer.scala:4191)
2:
dotty.tools.dotc.typer.Applications.realApply$1(Applications.scala:1448)
2:
dotty.tools.dotc.transform.Erasure$Typer.isPrimaryConsOfSpecTrait$1(Erasure.scala:1099)
2: dotty.tools.dotc.typer.Typer.typedPackageDef(Typer.scala:3682)
2:
dotty.tools.dotc.transform.PruneInlinedMethods.$anonfun$2(PruneInlinedMethods.scala:33)
2:
dotty.tools.dotc.transform.PruneInlineTraits.$anonfun$2(PruneInlineTraits.scala:37)
2:
dotty.tools.dotc.transform.Erasure$Typer.addRetainedInlineBodies$$anonfun$1(Erasure.scala:1048)
2:
dotty.tools.dotc.transform.PruneInlineTraits.$anonfun$2(PruneInlineTraits.scala:38)
2: dotty.tools.dotc.typer.Typer.typedClassDef(Typer.scala:3533)
2:
dotty.tools.dotc.ast.Trees$Instance$TreeMap.transform(Trees.scala:1641)
2:
dotty.tools.dotc.transform.SuperAccessors.wrapDefDef(SuperAccessors.scala:229)
2:
dotty.tools.dotc.transform.CheckLoopingImplicits.checkNotLooping$1(CheckLoopingImplicits.scala:70)
1:
dotty.tools.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.genPlainClass(BCodeSkelBuilder.scala:165)
1:
dotty.tools.dotc.transform.SpecializeApplyMethods.transformTemplate(SpecializeApplyMethods.scala:89)
1:
dotty.tools.dotc.core.tasty.TreePickler.pickleTree(TreePickler.scala:668)
1:
dotty.tools.dotc.transform.MacroTransform$Transformer.transform(MacroTransform.scala:49)
1:
dotty.tools.dotc.transform.CompleteJavaEnums.transformTemplate(CompleteJavaEnums.scala:192)
1:
dotty.tools.dotc.ast.MainProxies$.mainMethods$1$$anonfun$1(MainProxies.scala:33)
1:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genStat(BCodeBodyBuilder.scala:106)
1:
dotty.tools.dotc.transform.ResolveSuper.transformTemplate(ResolveSuper.scala:46)
1:
dotty.tools.dotc.ast.tpd$TreeMapWithPreciseStatContexts.loop$2(tpd.scala:1294)
1:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genStat(BCodeBodyBuilder.scala:96)
1:
dotty.tools.dotc.transform.Mixin.transformConstructor$1(Mixin.scala:245)
1:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genApply(BCodeBodyBuilder.scala:809)
1: dotty.tools.dotc.ast.TypedTreeInfo.sliceTopLevel(TreeInfo.scala:1067)
1:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genStat(BCodeBodyBuilder.scala:101)
1: dotty.tools.dotc.typer.Checking$$anon$7.traverse(Checking.scala:988)
1:
dotty.tools.dotc.transform.FunctionXXLForwarders.transformTemplate(FunctionXXLForwarders.scala:44)
1:
dotty.tools.dotc.transform.SyntheticMembers.checkInlining$$anonfun$1$$anonfun$1(SyntheticMembers.scala:735)
1: dotty.tools.dotc.transform.Mixin.$anonfun$1(Mixin.scala:249)
1:
dotty.tools.dotc.transform.ProtectedAccessors.transformTemplate(ProtectedAccessors.scala:102)
1:
dotty.tools.dotc.transform.Mixin.transformConstructor$1(Mixin.scala:244)
1:
dotty.tools.dotc.transform.DesugarSpecializedTraits.collectReferencedSpecializations$$anonfun$1$$anonfun$1(DesugarSpecializedTraits.scala:474)
1:
dotty.tools.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.paramTKs(BCodeSkelBuilder.scala:150)
1:
dotty.tools.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.genPlainClass(BCodeSkelBuilder.scala:288)
1:
dotty.tools.dotc.transform.MoveStatics.$anonfun$2(MoveStatics.scala:44)
1:
dotty.tools.dotc.transform.FirstTransform.reorder$1(FirstTransform.scala:92)
1: dotty.tools.dotc.ast.TypedTreeInfo.sliceTopLevel(TreeInfo.scala:1062)
1: dotty.tools.dotc.typer.Typer.typedClassDef(Typer.scala:3570)
1: dotty.tools.dotc.typer.Typer.traverse$1(Typer.scala:4146)
1:
dotty.tools.dotc.transform.LambdaLift$Lifter$$anon$1.process(LambdaLift.scala:51)
1:
dotty.tools.dotc.typer.RefChecks.transformTypeDef(RefChecks.scala:1514)
1:
dotty.tools.dotc.transform.CheckNoSuperThis.transformDefDef(CheckNoSuperThis.scala:31)
1: dotty.tools.dotc.typer.ReTyper.localDummy(ReTyper.scala:145)
1:
dotty.tools.dotc.transform.MoveStatics.$anonfun$1(MoveStatics.scala:43)
1: dotty.tools.dotc.transform.Mixin.transformTemplate(Mixin.scala:203)
1:
dotty.tools.dotc.core.tasty.TreePickler.pickleTree(TreePickler.scala:674)
1:
dotty.tools.dotc.transform.RestoreScopes.restoreScope(RestoreScopes.scala:46)
1:
dotty.tools.dotc.transform.SyntheticMembers.checkInlining$$anonfun$1$$anonfun$1(SyntheticMembers.scala:736)
1:
dotty.tools.dotc.transform.Constructors.splitStats$1(Constructors.scala:283)
1:
dotty.tools.dotc.transform.Specialization$.unapply(DesugarSpecializedTraits.scala:904)
1:
dotty.tools.dotc.transform.CheckLoopingImplicits.checkNotSelfRef$1(CheckLoopingImplicits.scala:49)
1:
dotty.tools.dotc.transform.HoistSuperArgs.transformTypeDef(HoistSuperArgs.scala:232)
1:
dotty.tools.dotc.transform.Dependencies.process(Dependencies.scala:258)
1: dotty.tools.backend.jvm.CodeGen.genClassDef$1(CodeGen.scala:36)
1:
dotty.tools.dotc.transform.TreeExtractors$BinaryOp$.unapply(TreeExtractors.scala:16)
1:
dotty.tools.dotc.transform.Constructors$intoConstr$2$.apply(Constructors.scala:195)
1:
dotty.tools.dotc.transform.ElimErasedValueType.prepareForTypeDef(ElimErasedValueType.scala:130)
1:
dotty.tools.dotc.transform.TailRec$TailRecElimination.transform(TailRec.scala:418)
1:
dotty.tools.dotc.ast.MainProxies$.mainMethods$1$$anonfun$1(MainProxies.scala:35)
1:
dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoadTo(BCodeBodyBuilder.scala:400)
1:
dotty.tools.dotc.transform.LambdaLift.transformTypeDef(LambdaLift.scala:350)
1:
dotty.tools.dotc.transform.RestoreScopes.restoreScope(RestoreScopes.scala:42)
1:
dotty.tools.dotc.transform.ExtensionMethods.transformTemplate(ExtensionMethods.scala:151)
</pre>
</details>
## Have you relied on LLM-based tools in this contribution?
No
## How was the solution tested?
Covered by existing tests (this is a refactoring)Tree.symbol calls (#26914)1 parent a004a75 commit 8e7d60d
24 files changed
Lines changed: 165 additions & 138 deletions
File tree
- compiler/src/dotty/tools
- backend
- jvm
- dotc
- ast
- core
- tasty
- inlines
- transform
- typer
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
401 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
402 | 403 | | |
403 | 404 | | |
404 | 405 | | |
| |||
Lines changed: 10 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
404 | 405 | | |
405 | 406 | | |
406 | 407 | | |
| |||
409 | 410 | | |
410 | 411 | | |
411 | 412 | | |
412 | | - | |
| 413 | + | |
413 | 414 | | |
414 | 415 | | |
415 | 416 | | |
| |||
1278 | 1279 | | |
1279 | 1280 | | |
1280 | 1281 | | |
1281 | | - | |
1282 | | - | |
1283 | | - | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
1284 | 1286 | | |
1285 | 1287 | | |
1286 | 1288 | | |
1287 | | - | |
1288 | 1289 | | |
1289 | 1290 | | |
1290 | 1291 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
649 | | - | |
650 | | - | |
| 649 | + | |
651 | 650 | | |
652 | 651 | | |
653 | 652 | | |
| |||
813 | 812 | | |
814 | 813 | | |
815 | 814 | | |
816 | | - | |
817 | | - | |
818 | 815 | | |
819 | 816 | | |
820 | 817 | | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
821 | 821 | | |
822 | 822 | | |
823 | | - | |
| 823 | + | |
824 | 824 | | |
825 | 825 | | |
826 | 826 | | |
| |||
903 | 903 | | |
904 | 904 | | |
905 | 905 | | |
906 | | - | |
| 906 | + | |
907 | 907 | | |
908 | 908 | | |
909 | 909 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1013 | 1013 | | |
1014 | 1014 | | |
1015 | 1015 | | |
1016 | | - | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
1017 | 1019 | | |
1018 | 1020 | | |
1019 | 1021 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
374 | | - | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
375 | 377 | | |
376 | 378 | | |
377 | 379 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1200 | 1200 | | |
1201 | 1201 | | |
1202 | 1202 | | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
1203 | 1209 | | |
1204 | 1210 | | |
1205 | 1211 | | |
| |||
1209 | 1215 | | |
1210 | 1216 | | |
1211 | 1217 | | |
| 1218 | + | |
1212 | 1219 | | |
1213 | | - | |
1214 | | - | |
1215 | | - | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
1216 | 1224 | | |
| 1225 | + | |
1217 | 1226 | | |
1218 | 1227 | | |
1219 | 1228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
Lines changed: 13 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
88 | 86 | | |
89 | 87 | | |
90 | 88 | | |
| |||
474 | 472 | | |
475 | 473 | | |
476 | 474 | | |
| 475 | + | |
| 476 | + | |
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
480 | | - | |
| 480 | + | |
481 | 481 | | |
482 | | - | |
483 | 482 | | |
484 | 483 | | |
485 | 484 | | |
486 | 485 | | |
487 | | - | |
| 486 | + | |
488 | 487 | | |
489 | 488 | | |
490 | 489 | | |
| |||
493 | 492 | | |
494 | 493 | | |
495 | 494 | | |
496 | | - | |
| 495 | + | |
497 | 496 | | |
498 | | - | |
| 497 | + | |
499 | 498 | | |
500 | 499 | | |
501 | 500 | | |
502 | | - | |
503 | 501 | | |
504 | 502 | | |
505 | 503 | | |
506 | 504 | | |
507 | | - | |
| 505 | + | |
| 506 | + | |
508 | 507 | | |
509 | 508 | | |
510 | 509 | | |
511 | | - | |
| 510 | + | |
512 | 511 | | |
513 | 512 | | |
514 | 513 | | |
| |||
520 | 519 | | |
521 | 520 | | |
522 | 521 | | |
523 | | - | |
| 522 | + | |
524 | 523 | | |
525 | 524 | | |
526 | 525 | | |
| |||
Lines changed: 15 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
927 | 927 | | |
928 | 928 | | |
929 | 929 | | |
930 | | - | |
931 | | - | |
| 930 | + | |
| 931 | + | |
932 | 932 | | |
933 | 933 | | |
934 | 934 | | |
| |||
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
953 | | - | |
954 | | - | |
| 953 | + | |
| 954 | + | |
955 | 955 | | |
956 | 956 | | |
957 | | - | |
| 957 | + | |
958 | 958 | | |
959 | | - | |
| 959 | + | |
960 | 960 | | |
961 | 961 | | |
962 | | - | |
| 962 | + | |
963 | 963 | | |
964 | | - | |
| 964 | + | |
965 | 965 | | |
966 | 966 | | |
967 | 967 | | |
| |||
1036 | 1036 | | |
1037 | 1037 | | |
1038 | 1038 | | |
1039 | | - | |
1040 | | - | |
| 1039 | + | |
| 1040 | + | |
1041 | 1041 | | |
1042 | 1042 | | |
1043 | 1043 | | |
| |||
1530 | 1530 | | |
1531 | 1531 | | |
1532 | 1532 | | |
| 1533 | + | |
1533 | 1534 | | |
1534 | | - | |
1535 | | - | |
1536 | | - | |
1537 | | - | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
1538 | 1539 | | |
1539 | 1540 | | |
1540 | 1541 | | |
| |||
0 commit comments