The non-generic base interface for IQuery<TDeclaration>. Represents a query over code declarations that can be used to programmatically select declarations and apply aspects, configuration, validators, and diagnostics. Provides LINQ-like methods that can be combined to create complex queries.
Namespace: Metalama.Framework.Fabrics
Assembly: Metalama.Framework.dll
Syntax
[InternalImplement]
[CompileTime]
public interface IQueryRemarks
Query interfaces are used within fabrics to select declarations programmatically using method chaining and LINQ-like operations. For example, you can select all types, filter by namespace or attributes, and then apply aspects to the results.
Properties
| Name | Description |
|---|---|
| OriginatingDeclaration | Gets the declaration of the originating fabric or aspect instance. |
| OriginatingNamespace | Gets the current namespace, i.e. the one of the originating fabric or aspect instance,
or |
| Project | Gets the current project. |