Open sandboxFocus

Class CompilationExtensions

Extension methods for the ICompilation interface.

Inheritance
CompilationExtensions
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
public static class CompilationExtensions

Methods

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

Gets all declarations in the compilation that are annotated with a specific attribute type, specified as a reflection Type.

GetDeclarationsWithAttribute<TAttribute>(ICompilation, Func<TAttribute, bool>?, bool)

Gets all declarations in the compilation that are annotated with a specific attribute type.

See Also