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 annotations to output of crystal tool unreachable #13927

Conversation

straight-shoota
Copy link
Member

Annotations can be helpful for analyzing unreachable defs. For example, a def with annotation Deprecated could be considered as less relevant.
This information is easily available, so it's a simple to change to make it available in the output.

Example output:

foobar.cr:1:1     top-level foo   3 lines
foobar.cr:7:1     top-level foo   3 lines @[Deprecated("You should use bar")] @[Experimental]
foobar.cr:11:1    top-level bar   3 lines @[Deprecated("You should use foo\nreally!")]

@straight-shoota straight-shoota added this to the 1.11.0 milestone Nov 1, 2023
@straight-shoota straight-shoota merged commit 6e3a66e into crystal-lang:master Nov 2, 2023
53 of 55 checks passed
@straight-shoota straight-shoota deleted the feat/unreachable-annotations branch November 2, 2023 12:57
Blacksmoke16 pushed a commit to Blacksmoke16/crystal that referenced this pull request Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants