Table of Contents

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
object
Attribute
MemoizationReportAttribute

Remarks

The memoization guide owns the reading of the fields and the ways to list them.

Constructors

MemoizationReportAttribute(bool, int, string)

Fields

MetadataKey

The key of the AssemblyMetadata an 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.