Skip to content

Commit

Permalink
Skip Crystal::Macros unless generating docs (crystal-lang#13970)
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota authored Dec 13, 2023
1 parent 6fe0ef7 commit f5a5e5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/compiler/crystal/macros.cr
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{% skip_file unless flag?(:docs) %}

# Defines string related macro methods.
#
# Many `StringLiteral` methods can be called from `SymbolLiteral` and `MacroId`,
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/crystal/tools/doc/type.cr
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class Crystal::Doc::Type

def ast_node?
type = @type
type.is_a?(ClassType) && type.full_name == Crystal::Macros::ASTNode.name
type.is_a?(ClassType) && type.full_name == "Crystal::Macros::ASTNode"
end

def locations
Expand Down

0 comments on commit f5a5e5a

Please sign in to comment.