dotty.tools.dotc.transform.init.Cache
See theCache companion class
object Cache
Attributes
Members list
Type members
Classlikes
class ImmutableTreeWrapper(val tree: Tree) extends TreeWrapper
The immutable wrapper is intended to be stored as key in the heap.
The immutable wrapper is intended to be stored as key in the heap.
Attributes
- Supertypes
class MutableTreeWrapper extends TreeWrapper
For queries on the heap, reuse the same wrapper to avoid unnecessary allocation.
For queries on the heap, reuse the same wrapper to avoid unnecessary allocation.
A MutableTreeWrapper
is only ever used temporarily for querying a map, and is never inserted to the map.
Attributes
- Supertypes
A wrapper for trees for storage in maps based on referential equality of trees.
A wrapper for trees for storage in maps based on referential equality of trees.
Attributes
- Supertypes
- Known subtypes
-
class ImmutableTreeWrapperclass MutableTreeWrapper
Types
Extensions
Extensions
extension [Config, Res](cache: ExprValueCache[Config, Res])
def removed(config: Config, expr: Tree)(using queryWrapper: MutableTreeWrapper): Map[Config, Map[TreeWrapper, Res]]
def updatedNestedWrapper(config: Config, wrapper: ImmutableTreeWrapper, result: Res): ExprValueCache[Config, Res]
In this article