Open sandboxFocus

Class ReferenceValidationQueryExtensions

Inheritance
ReferenceValidationQueryExtensions
Namespace: Metalama.Extensions.Validation
Assembly: Metalama.Extensions.Validation.dll
Syntax
[CompileTime]
public static class ReferenceValidationQueryExtensions

Methods

Name Description
ValidateInboundReferences<TDeclaration>(IQuery<TDeclaration>, InboundReferenceValidator)

Registers an inbound reference validator, provided as an instance of the InboundReferenceValidator abstract class. The reference validator will be invoked to validate any references pointing to any declaration in the current set. Only source code references are validated. References added by aspects are ignored by design.

ValidateInboundReferences<TDeclaration>(IQuery<TDeclaration>, Action<ReferenceValidationContext>, ReferenceGranularity, ReferenceKinds, ReferenceValidationOptions)

Registers an inbound reference validator, provided as a delegate. The reference validator will be invoked to validate any references pointing to to any declaration in the current set. This method must have a parameter of type in ReferenceValidationContext. Only source code references are validated. References added by aspects are ignored by design.

ValidateInboundReferences<TDeclaration, TValidator>(IQuery<TDeclaration>, Func<TDeclaration, TValidator>)

Registers a reference validator, provided by a delegate that provides an instance of the ReferenceValidator abstract class. The reference validator will be invoked to validate references to any declaration in the current set. Only source code references are validated. References added by aspects are ignored by design.

ValidateInboundReferences<TDeclaration, TTag, TValidator>(ITaggedQuery<TDeclaration, TTag>, Func<TDeclaration, TTag, TValidator>)

Registers a reference validator, provided by a delegate that provides an instance of the ReferenceValidator abstract class. The reference validator will be invoked to validate references to any declaration in the current set. Only source code references are validated. References added by aspects are ignored by design.

ValidateReferences<TDeclaration>(IQuery<TDeclaration>, ReferenceValidator)
ValidateReferences<TDeclaration, TValidator>(IQuery<TDeclaration>, Func<TDeclaration, TValidator>)