diff options
author | Ćukasz Samson <lukaszsamson@gmail.com> | 2023-05-04 10:02:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 10:02:57 +0200 |
commit | 14c55d15afbf08b0d8289a4399a15b4109b6ac5a (patch) | |
tree | 817b03120be0c5e81dceeab4e6eb2a3736e683a0 | |
parent | bbfeda803c44c87cda658d0664cb1264439612dd (diff) | |
download | elixir-14c55d15afbf08b0d8289a4399a15b4109b6ac5a.tar.gz |
Add missing reserved attributes (#12546)
-rw-r--r-- | lib/elixir/lib/module.ex | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/elixir/lib/module.ex b/lib/elixir/lib/module.ex index 5ed28ac96..5fbdb8c5a 100644 --- a/lib/elixir/lib/module.ex +++ b/lib/elixir/lib/module.ex @@ -625,6 +625,21 @@ defmodule Module do behaviour: %{ doc: "Specifies that the current module implements a given behaviour." }, + enforce_keys: %{ + doc: + "Ensures the given keys are always set when building the struct defined in the current module." + }, + fallback_to_any: %{ + doc: + "If set to `true` generates a default protocol implementation for all types (inside `defprotocol`)." + }, + for: %{ + doc: + "The current module/type a protocol implementation is being defined for (inside `defimpl`)." + }, + protocol: %{ + doc: "The current protocol being implemented (inside `defimpl`)." + }, on_definition: %{ doc: "A hook that will be invoked when each function or macro in the current module is defined." |