コード例 #1
0
        private void AddReferences(IntellisenseDeclarations declarations, ProjectTreeNode project)
        {
            var namespaces = new List<IBooParseTreeNode>();

            foreach (var ns in project.ReferencedNamespaces.Keys)
            {
                namespaces.Add(project.ReferencedNamespaces[ns]);
            }

            declarations.AddRange(namespaces);
        }
コード例 #2
0
        /// <summary>
        /// Adds members from the current scope (flattened, so all containing scopes are included) to
        /// the declarations.
        /// </summary>
        private void AddMembersFromScopeTree(IntellisenseDeclarations declarations, IBooParseTreeNode scopedParseTree)
        {
            var parseTreeFlattener = new BooParseTreeNodeFlatterner();

            declarations.AddRange(parseTreeFlattener.FlattenFrom(scopedParseTree));
        }