Beispiel #1
0
        public static IEnumerable <IDeclaration> FindAllAccessibleDeclarations(ITreeNode from)
        {
            var result = new HashSet <IDeclaration>();
            var root   = from.FindNearestDeclarationRoot();

            while (root != null)
            {
                result.addAll(root.GetDeclarationsFromRoot());
                root = root.Parent?.FindNearestDeclarationRoot();
            }

            return(result);
        }