Skip to content

Commit

Permalink
Document Crystal::Macros::Self and Underscore (#12085)
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil authored Jun 9, 2022
1 parent 7fabd1b commit 0123976
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/compiler/crystal/macros.cr
Original file line number Diff line number Diff line change
Expand Up @@ -1586,8 +1586,10 @@ module Crystal::Macros
end
end

# class Self < ASTNode
# end
# The `self` expression. May appear in code, such as in an instance method,
# and in type names.
class Self < ASTNode
end

# The base class of control expressions.
abstract class ControlExpression < ASTNode
Expand Down Expand Up @@ -1717,8 +1719,10 @@ module Crystal::Macros
# class MacroFor < ASTNode
# end

# class Underscore < ASTNode
# end
# The `_` expression. May appear in code, such as an assignment target, and in
# type names.
class Underscore < ASTNode
end

# class MagicConstant < ASTNode
# end
Expand Down

0 comments on commit 0123976

Please sign in to comment.