Skip to content

Commit

Permalink
Update the AST docs on nothing :method expressions (#38496)
Browse files Browse the repository at this point in the history
Fixes #38451
  • Loading branch information
timholy authored Dec 26, 2020
1 parent 8af7a04 commit d0478ca
Showing 1 changed file with 4 additions and 3 deletions.
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

0 comments on commit d0478ca

Please sign in to comment.