public FindProject ( Rubberduck.Parsing.Symbols.Declaration currentScope, string name ) : Rubberduck.Parsing.Symbols.Declaration | ||
currentScope | Rubberduck.Parsing.Symbols.Declaration | |
name | string | |
Résultat | Rubberduck.Parsing.Symbols.Declaration |
public IReadOnlyList <Declaration> Load() { foreach (var item in _finder.MatchName(Tokens.Err)) { if (item.IsBuiltIn && item.DeclarationType == DeclarationType.Variable && item.Accessibility == Accessibility.Global) { return(new List <Declaration>()); } } var vba = _finder.FindProject("VBA"); if (vba == null) { // if VBA project is null, we haven't loaded any COM references; // we're in a unit test and mock project didn't setup any references. return(new List <Declaration>()); } var informationModule = _finder.FindStdModule("Information", vba, true); Debug.Assert(informationModule != null, "We expect the information module to exist in the VBA project."); return(Load(vba, informationModule)); }