예제 #1
0
        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));
        }
예제 #2
0
 private bool IsAccessible(IAccessibleMember member)
 {
     return(_checker.IsAccessible(member));
 }