Skip to content

@SupportedLanguage support for symbols #465

Open
@franklinsch

Description

@franklinsch

Feature Name

@SupportedLanguage support for symbols

Description

With https://forums.swift.org/t/setting-programming-language-availability-for-articles-in-swift-docc/61435, the @SupportedLanguage directive was added to specify the programming languages an article is available in. It would make sense to bring it to symbols as well as part of a future PR. The @SupportedLanguage data would override data from symbol graphs, similar to how the @Available directive overrides the symbol graph information.

Motivation

Provide the ability of overriding the programming languages a symbol is available in. In practice, the use cases for wanting this will likely be very rare and will likely not apply when building Swift+ObjC documentation.

Importance

No response

Alternatives Considered

We could decide to not support this directive for symbols, in which case we'd want DocC to emit a diagnostic explaining that the use of the directive is not supported for symbols.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions