Skip to content

Commit bb8ad44

Browse files
josevalimsabiwara
authored andcommitted
Improve ast metadata docs
1 parent 111b48d commit bb8ad44

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/elixir/lib/macro.ex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,9 @@ defmodule Macro do
136136
137137
* `:closing` - contains metadata about the closing pair, such as a `}`
138138
in a tuple or in a map, or such as the closing `)` in a function call
139-
with parens. The `:closing` does not delimit the end of expression if
140-
there are `:do` and `:end` metadata (when `:token_metadata` is true)
139+
with parens (when `:token_metadata` is true). If the function call
140+
has a do-end block attached to it, its metadata is found under the
141+
`:do` and `:end` metadata
141142
142143
* `:column` - the column number of the AST node (when `:columns` is true).
143144
Note column information is always discarded from quoted code.
@@ -154,8 +155,8 @@ defmodule Macro do
154155
`do`-`end` blocks (when `:token_metadata` is true)
155156
156157
* `:end_of_expression` - denotes when the end of expression effectively
157-
happens. Available for all expressions except the last one inside a
158-
`__block__` (when `:token_metadata` is true)
158+
happens (when `:token_metadata` is true). Available for all expressions
159+
except the last one inside a `__block__`
159160
160161
* `:indentation` - indentation of a sigil heredoc
161162

0 commit comments

Comments
 (0)