private void ProcessModule()
        {
            foreach (IVbMethod method in this.Module.Members.OfType <IVbMethod>())
            {
                if (method is IVbProperty)
                {
                    _properties.Add(new VB6UnresolvedProperty((IVbProperty)method, this.UnresolvedFile, this, this.DeclaringTypeDefinition));
                }
                else
                {
                    _methods.Add(new VB6UnresolvedMethod(method, this.UnresolvedFile, this, this.DeclaringTypeDefinition));
                }
            }

            foreach (IVbField field in this.Module.Members.OfType <IVbField>())
            {
                _fields.Add(new VB6UnresolvedField(field, this.UnresolvedFile, this, this.DeclaringTypeDefinition));
            }

            _members.AddRange(_events);
            _members.AddRange(_fields);
            _members.AddRange(_properties);
            _members.AddRange(_methods);

            this.ResolvedType = VB6Type.GetResolved(this);
        }
Esempio n. 2
0
        public static VB6Type GetResolved(IUnresolvedTypeDefinition typeDefinition)
        {
            VB6Type ret = new VB6Type(typeDefinition);

            /* Create resolved members.
             */
            foreach (var item in typeDefinition.Members)
            {
                IMember member = ConvertToMember(item);
                if (member != null)
                {
                    ret._members.Add(member);
                }
            }

            return(ret);
        }
Esempio n. 3
0
        public static VB6Type GetResolved(IUnresolvedTypeDefinition typeDefinition)
        {
            VB6Type ret = new VB6Type(typeDefinition);

            /* Create resolved members.
             */
            foreach (var item in typeDefinition.Members)
            {
                IMember member = ConvertToMember(item);
                if (member != null)
                {
                    ret._members.Add(member);
                }
            }

            return ret;
        }