Skip to content

Commit 8e4d2cd

Browse files
authored
Document assoc metadata entry (#14125)
1 parent d3cef1f commit 8e4d2cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/elixir/lib/macro.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ defmodule Macro do
134134
135135
The following metadata keys are enabled by `Code.string_to_quoted/2`:
136136
137+
* `:assoc` - contains metadata about the `=>` operator location in a
138+
map key-value AST node (when `:token_metadata` is true). This entry
139+
appears on map key nodes only
140+
137141
* `:closing` - contains metadata about the closing pair, such as a `}`
138142
in a tuple or in a map, or such as the closing `)` in a function call
139143
with parens (when `:token_metadata` is true). If the function call

0 commit comments

Comments
 (0)