-
Notifications
You must be signed in to change notification settings - Fork 218
Add conversion from ast nodes to module member and clone removing member C API #3363
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
Add conversion from ast nodes to module member and clone removing member C API #3363
Conversation
| }; | ||
|
|
||
| template <typename T> | ||
| xls::dslx::ModuleMember* FindModuleMemberForNode(T* node) { |
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.
It seems like this would be better as bool IsModuleMember(const AstNode* node) The current name kind of implies that it's going to dig up the ModuleMember that the node is in.
…ing member C API
…ing member C API
…ing member C API
…ing member C API
…ing member C API
…ing member C API
| char** error_out, struct xls_dslx_typechecked_module** result_out) { | ||
| CHECK(error_out != nullptr); | ||
| CHECK(result_out != nullptr); | ||
| auto fail = [&](absl::string_view message) { |
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.
we need to switch this to std::string_view for internal checks to pass.
No description provided.