Skip to content

Feature request: Infer @private for #-prefixed private methods #1590

Open

Description

@LeaVerou

I was surprised I had to add @private for #-prefixed functions to be recognized as private, it seems relatively straightforward to infer.

Possibly related: #1355

Activity

  1. tannerstern commented on May 21, 2024

    @tannerstern

    I was going to suggest using the --infer-private option with --infer-private "^#" but for whatever reason that doesn't work. In the output it appears the # character is stripped from function names some time before the "infer access" step. I tried again with --infer-private "^_" as exampled in the source code which did work as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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