Skip to content

Fix some doc inconsistencies for macros#16561

Merged
ysbaddaden merged 1 commit intocrystal-lang:masterfrom
Blacksmoke16:macro-show-doc
Jan 13, 2026
Merged

Fix some doc inconsistencies for macros#16561
ysbaddaden merged 1 commit intocrystal-lang:masterfrom
Blacksmoke16:macro-show-doc

Conversation

@Blacksmoke16
Copy link
Member

@Blacksmoke16 Blacksmoke16 commented Jan 10, 2026

Follow up to #15337.

Noticed that if you use a :showdoc: directive on a private macro it wasn't stripping the directive like it did for a private def. Also fixes up the #visibility method, as it was returning the visibility of the type, not the macro itself.

A copy of the method spec, but for a macro now passes.

@Blacksmoke16 Blacksmoke16 added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:tools:docs-generator labels Jan 10, 2026
@straight-shoota straight-shoota added this to the 1.19.0 milestone Jan 12, 2026
@ysbaddaden ysbaddaden merged commit b0d2f94 into crystal-lang:master Jan 13, 2026
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:tools:docs-generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants