File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Rubberduck.Parsing/ComReflection Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -119,11 +119,6 @@ private void LoadModules(ITypeLib typeLibrary)
119
119
_classes . Add ( coclass as ComCoClass ) ;
120
120
if ( type != null ) KnownTypes . TryAdd ( typeAttributes . guid , coclass ) ;
121
121
break ;
122
- case TYPEKIND . TKIND_ALIAS :
123
- //The current handling of this is wrong - these don't have to be classes or interfaces. In the VBE module for example,
124
- //"LongPtr" is defined as an alias to "Long" (at least on a 32 bit system) - RD is currently treating is like a class.
125
- //Unclear if these can *also* define alternative names for interfaces as well, but all the ones I've seen have been basically
126
- //a C typedef. So... this needs work. Don't make any assumptions about these elsewhere in the code until this is nailed down.
127
122
case TYPEKIND . TKIND_DISPATCH :
128
123
case TYPEKIND . TKIND_INTERFACE :
129
124
var intface = type ?? new ComInterface ( typeLibrary , info , typeAttributes , index ) ;
@@ -139,6 +134,8 @@ private void LoadModules(ITypeLib typeLibrary)
139
134
_modules . Add ( module as ComModule ) ;
140
135
if ( type != null ) KnownTypes . TryAdd ( typeAttributes . guid , module ) ;
141
136
break ;
137
+ case TYPEKIND . TKIND_ALIAS :
138
+ //TKIND_ALIAS does not appear to be a supported member type in VBA.
142
139
case TYPEKIND . TKIND_UNION :
143
140
//TKIND_UNION is not a supported member type in VBA.
144
141
break ;
You can’t perform that action at this time.
0 commit comments