Class MemoizationReportAttribute
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Written onto a [Component] method by the build-time compiler transform to record what it made of the
body, so that a component cached in part can be inspected as readily as one cached whole. Do not apply by
hand.
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
public sealed class MemoizationReportAttribute : Attribute
- Inheritance
-
objectAttributeMemoizationReportAttribute
Remarks
The memoization guide owns the reading of the fields and the ways to list them.
Constructors
Fields
- MetadataKey
The key of the
AssemblyMetadataan assembly carries to have what is left uncached reported as build warnings.
- WarnValue
The value of that
AssemblyMetadata.
Properties
- Bailouts
One entry per thing left uncached, each naming it and the reason; empty when nothing was left out.
- BodyGate
Whether the body as a whole returns its cached tree when its props and hook values compare equal.
- Scopes
How many parts of the body are cached on their own, each keyed on only the values it reads.