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

Document Crystal::Macros::Self and Underscore #12085

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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