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

Update the AST docs on nothing :method expressions #38496

Merged
merged 1 commit into from
Dec 26, 2020
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
7 changes: 4 additions & 3 deletions doc/src/devdocs/ast.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,10 @@ These symbols appear in the `head` field of [`Expr`](@ref)s in lowered form.

* `args[1]`

A function name, or `false` if unknown. If a symbol, then the expression first
behaves like the 1-argument form above. This argument is ignored from then on. When
this is `false`, it means a method is being added strictly by type, `(::T)(x) = x`.
A function name, or `nothing` if unknown or unneeded. If a symbol, then the expression
first behaves like the 1-argument form above. This argument is ignored from then on.
It can be `nothing` when methods are added strictly by type, `(::T)(x) = x`,
or when a method is being added to an existing function, `MyModule.f(x) = x`.

* `args[2]`

Expand Down