Example #1
0
 public FieldAccessCondition MatchField(params MemberDescriptor[] fields) =>
 (context) =>
 MemberDescriptor.MatchesAny(context.FieldName, context.InvokedFieldSymbol, false, CaseInsensitiveComparison, fields);
 public override ElementAccessCondition MatchProperty(MemberDescriptor member) =>
 (context) =>
 ((InvocationExpressionSyntax)context.Expression).Expression is MemberAccessExpressionSyntax memberAccess &&
Example #3
0
 public abstract ElementAccessCondition MatchProperty(MemberDescriptor member);
Example #4
0
 public PropertyAccessCondition MatchProperty(params MemberDescriptor[] properties) =>
 (context) =>
 MemberDescriptor.MatchesAny(context.PropertyName, context.PropertySymbol, false, CaseInsensitiveComparison, properties);
 public InvocationCondition MatchMethod(params MemberDescriptor[] methods) =>
 (context) =>
 MemberDescriptor.MatchesAny(context.MethodName, context.MethodSymbol, true, methods);