Open sandboxFocus

Interface IDeclarationCache

A service that caches declarations of the current compilation. It is typically used to cache often-used declarations across aspect instances.

Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public interface IDeclarationCache

Methods

Name Description
GetOrAdd<T>(Func<ICompilation, T>)

Gets an item from the cache or computes it and add its.