override public void OnReferenceExpression(ReferenceExpression node) { IAccessibleMember member = node.Entity as IAccessibleMember; if (null == member) { return; } if (_checker.IsAccessible(member)) { return; } Error(CompilerErrorFactory.UnaccessibleMember(node, member.FullName)); }
private bool IsAccessible(IAccessibleMember member) { return(_checker.IsAccessible(member)); }