racket-langserver icon indicating copy to clipboard operation
racket-langserver copied to clipboard

Action to replace `(all-defined-out)` provide with explicit list of items

Open bluebear94 opened this issue 2 years ago • 1 comments
trafficstars

This would replace an (all-defined-out) clause with all of the identifiers that would be exported.

bluebear94 avatar Mar 14 '23 10:03 bluebear94

To get information, this is quite easy:

  1. using get-definitions in doc-trace.rkt
  2. get keys as defined identifiers of the current module
  3. replace all-defined-out with the list

Some problems I can think out immediately are

  1. What if all-defined-out and some exported duplicated? e.g. provide foo (all-defined-out)
  2. export which phase? The layer is important in racket

dannypsnl avatar Apr 22 '23 09:04 dannypsnl