Open sandboxFocus

Method CanOnlyBeUsedFrom

CanOnlyBeUsedFrom(IVerifier<IDeclaration>, Func<ReferencePredicateBuilder, ReferencePredicate>, string?, ReferenceKinds)

Reports a warning when any type in the current scope is used from a different context than the ones matching the specified predicate.

Declaration
public static void CanOnlyBeUsedFrom(this IVerifier<IDeclaration> verifier, Func<ReferencePredicateBuilder, ReferencePredicate> scope, string? description = null, ReferenceKinds referenceKinds = (ReferenceKinds)-1)
Parameters
Type Name Description
IVerifier<IDeclaration> verifier
Func<ReferencePredicateBuilder, ReferencePredicate> scope
string description
ReferenceKinds referenceKinds