Esempio n. 1
0
        public VBProjectParseResult(VBProject project, IEnumerable <VBComponentParseResult> parseResults)
        {
            _project      = project;
            _parseResults = parseResults;
            _declarations = new Declarations();

            var projectIdentifier  = project.Name;
            var memberName         = new QualifiedMemberName(new QualifiedModuleName(project), projectIdentifier);
            var projectDeclaration = new Declaration(memberName, "VBE", projectIdentifier, false, false, Accessibility.Global, DeclarationType.Project, false);

            _declarations.Add(projectDeclaration);

            foreach (var declaration in VbaStandardLib.Declarations)
            {
                _declarations.Add(declaration);
            }

            foreach (var declaration in _parseResults.SelectMany(item => item.Declarations))
            {
                _declarations.Add(declaration);
            }
        }
 public QualifiedContext(QualifiedMemberName memberName, ParserRuleContext context)
     : this(memberName.QualifiedModuleName, context)
 {
     MemberName = memberName;
 }