Open sandboxFocus

Class AspectReceiverExtensions

Extension methods for IAspectReceiver<TDeclaration>.

Inheritance
AspectReceiverExtensions
Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public static class AspectReceiverExtensions

Methods

Name Description
SelectDeclarationsWithAttribute(IAspectReceiver<ICompilation>, Type, Func<IAttribute, bool>?, bool)

Selects all custom attributes of a given type in the current compilation. This overloads accepts an optional predicate to filter the attribute.

SelectDeclarationsWithAttribute<TAttribute>(IAspectReceiver<ICompilation>, Func<TAttribute, bool>?, bool)

Selects all custom attributes of a given type in the current compilation. This generic overloads constructs the attribute and accepts an optional predicate to filter the attribute.

SelectReferencedAssembly(IAspectReceiver<ICompilation>, string)

Selects a reference assembly in the current compilation given its assembly name.

SelectReflectionType(IAspectReceiver<ICompilation>, Type)

Selects an INamedType in the current compilation or in a reference assembly given its reflection Type.

SelectReflectionTypes(IAspectReceiver<ICompilation>, IEnumerable<Type>)

Selects several INamedType in the current compilation or in a reference assembly given their reflection Type.

SelectReflectionTypes(IAspectReceiver<ICompilation>, params Type[])

Selects several INamedType in the current compilation or in a reference assembly given their reflection Type.