documentation icon indicating copy to clipboard operation
documentation copied to clipboard

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

Open LeaVerou opened this issue 2 years ago • 1 comments

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

LeaVerou avatar Jan 21 '23 19:01 LeaVerou

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.

tannerstern avatar May 21 '24 15:05 tannerstern