Skip to content

Commit

Permalink
Add missed showdoc? method
Browse files Browse the repository at this point in the history
  • Loading branch information
nobodywasishere committed Jan 12, 2025
1 parent cfc7925 commit 639db4a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/compiler/crystal/tools/doc/generator.cr
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,16 @@ class Crystal::Doc::Generator
false
end

def showdoc?(obj)
return false if !@program.wants_doc?

if showdoc?(obj.doc.try &.strip)
return true
end

false
end

def crystal_builtin?(type)
return false unless project_info.crystal_stdlib?
# TODO: Enabling this allows links to `NoReturn` to work, but has two `NoReturn`s show up in the sidebar
Expand Down

0 comments on commit 639db4a

Please sign in to comment.