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); }
/// <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)); }