Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache user COM projects (infrastructure) #4535
Cache user COM projects (infrastructure) #4535
Changes from all commits
8155734
5da2a42
32aaad0
9829315
9fa2b15
7d93546
95c60d8
2abe7fc
0bfa3b0
323e835
138b997
d53d42e
bd2589b
69361fc
a5b227b
c426d1b
6be22c5
e0d7df7
0bc004e
254961a
e5029be
7687755
b57c05a
034e80c
0eb4f71
38dab3d
61ba7dd
6a23b64
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that if we're going to assign
TKIND_VBACLASS
, we should at least make sure it's actually a VBA class at least.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How would you do that?
Moreover, nothing on a usual typelib should ever have the end of enum marker at TYPEKIND.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I originally thought of using the
HasVBEExtensions
function but looking at it, it might make more sense to simply set up theComProject
so that if it receives a VBE'sITypeLib
from the TLAPI, set a property as a guard against mislabeling a non-VBA type info as VBA.Alternatively, Wayne suggested simply casting it into
TKIND_INTERFACE
, since only the TLAPI cares about that distinction, but not the COM collector, right?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bclothier actually, I think this does need separate handling, since a TKIND_INTERFACE would not be expected to have any fields (cVars should be 0).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to check the TKIND_VBACLASS value actually came from the type lib API, you could just test if the ITypeInfo casts to a TypeInfoWrapper.