Skip to content
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 ASTNode.warning macro method #9246

Closed
Blacksmoke16 opened this issue May 8, 2020 · 1 comment · Fixed by #13262
Closed

Add ASTNode.warning macro method #9246

Blacksmoke16 opened this issue May 8, 2020 · 1 comment · Fixed by #13262

Comments

@Blacksmoke16
Copy link
Member

Currently ASTNode.raise exists to raise a compile time exception focused on the given node.

I think it would be quite handy to have similar functionality for warnings. The use case being producing deprecation warnings within custom macro generation code that isn't able to use the annotation.

@Blacksmoke16
Copy link
Member Author

Granted this and ASTNode.raise aren't as helpful as they could be due to #7147 and #7394.

Getting those fixed would make this much more helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants