tc39 / source-map

Source map specification, RFCs and new proposals.
https://tc39.es/source-map/
Other
130 stars 17 forks source link

[names] Add a section that clarifies how to emit names for JS #122

Closed szuend closed 4 weeks ago

szuend commented 3 months ago

This is a first draft that clarifies on which JS tokens we expect mappings with a name.

I tried to stick to the ECMA-262 AST on a level where it makes sense, but let me know what you think. I also used lang

A nice tie-in with the "Scopes" proposal is, that the ( token that shows up in the definition is also what we'll probably recommend as the "generated range" start, so that would fit rather well together.

Thinks that still need clarification:

szuend commented 2 months ago

Hey all, I incorporated the feedback form yesterday's meeting. Thanks a ton for the fruitful discussion! In particular:

English is not my native language and writing spec text is not my strong suite, so I'd welcome some word smithing/rephrasing to clear up the meaning. I also spelled out some more things that require review. Thanks!