-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Separate type class registration pass in experimental analysis #14558
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
Separate type class registration pass in experimental analysis #14558
Conversation
private: | ||
friend class TypeEnvironment; | ||
|
||
TypeClassInfo const& typeClassInfo(TypeClass _class) const | ||
{ | ||
return m_typeClasses.at(_class.m_index); | ||
} |
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.
Not sure why this was private in the first place. I need to access it to get at the type variable after the class is already registered. Is there some other way I am supposed to get it?
struct GlobalAnnotation | ||
{ | ||
}; |
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.
Perhaps I should move more things from TypeInference
here? builtinClasses
and builtinClassesByName
looks like good candidates.
I tried that already with typeClassFunctions
but the problem is that I don't have the function types to put in it - those are only available after TypeInference
processes function definitions. I could just gather FunctionDefinitions
but TypeInference
would have to iterate over them again and it did not seem like it would save us much code.
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.
Looks good to me for merging into newAnalysis
2746135
to
98269f3
Compare
soltest was failing due to the missing |
b2363a8
to
acad00f
Compare
98269f3
to
da83b35
Compare
…tration-pass Separate type class registration pass in experimental analysis
…tration-pass Separate type class registration pass in experimental analysis
…tration-pass Separate type class registration pass in experimental analysis
…tration-pass Separate type class registration pass in experimental analysis
…tration-pass Separate type class registration pass in experimental analysis
…tration-pass Separate type class registration pass in experimental analysis
…tration-pass Separate type class registration pass in experimental analysis
…tration-pass Separate type class registration pass in experimental analysis
Base PR: #14510.