MiniPhase
dotty.tools.dotc.transform.MegaPhase$.MiniPhase
The base class of tree transforms. For each kind of tree K, there are two methods which can be overridden:
prepareForK: return a new Context which gets passed to the node and its children transformK // transform node of type K
There are also prepare/transform hooks for
- Stats: to prepare/transform a statement sequence in a block, template, or package def,
- Unit : to prepare/transform a whole compilation unit
- Other: to prepape/transform a tree that does not have a specific prepare/transform method pair.
Attributes
- Graph
- Supertypes
- Known subtypes
- class CollectSuperCallstrait PluginPhaseclass ArrayApplyclass ArrayConstructorsclass BetaReduceclass CapturedVarsclass CheckLoopingImplicitsclass CheckNoSuperThisclass CheckReentrantclass CheckStaticclass CollectEntryPointsclass CollectNullableFieldsclass CompleteJavaEnumsclass Constructorsclass CookCommentsclass CountOuterAccessesclass CrossVersionChecksclass DropOuterAccessorsclass ElimByNameclass ElimErasedValueTypeclass ElimOpaqueclass ElimOuterSelectclass ElimPackagePrefixesclass ElimPolyFunctionclass ElimRepeatedclass ElimStaticThisclass EtaReduceclass ExpandPrivateclass ExpandSAMsclass ExplicitOuterclass ExplicitSelfclass ExtensionMethodsclass FirstTransformclass Flattenclass ForwardDepChecksclass FunctionXXLForwardersclass Gettersclass HoistSuperArgsclass InlinePatternsclass InlineValsclass Instrumentationclass InterceptedMethodsclass LambdaLiftclass LazyValsclass LetOverApplyclass LiftTryclass Memoizeclass Mixinclass MoveStaticsclass NonLocalReturnsclass ParamForwardingclass PatternMatcherclass ProtectedAccessorsclass PruneErasedDefsclass PureStatsclass RepeatableAnnotationsclass ResolveSuperclass RestoreScopesclass SelectStaticclass SeqLiteralsclass SpecializeApplyMethodsclass SpecializeFunctionsclass SpecializeTuplesclass TailRecclass TransformWildcardsclass TryCatchPatternsclass TupleOptimizationsclass UncacheGivenAliasesclass UninitializedDefsclass VCElideAllocationsclass VCInlineMethodsclass StringInterpolatorOptclass AddLocalJSFakeNewsclass ExplicitJSClassesclass JUnitBootstrappersclass RefChecks