Skip to content

No API to retrieve enforced_keys on a struct #14500

Closed as duplicate of#13881
Closed as duplicate of#13881
@lukaszsamson

Description

@lukaszsamson

Elixir and Erlang/OTP versions

any

Operating system

any

Current behavior

When a language server is returning completions with struct keys it would be nice to highlight the enforced ones. There is currently no API to retrieve that info. The @enforce_keys attribute is compile time only, there is no trace of that left in EEP48 docs.

Expected behavior

A metadata entry with enforced keys in documentation for the :__struct__ function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions