~/talk

A Trip into the Compiler

Talkat TSConf 2020 · on Friday, 2020-10-09· [typescript]
slides:none on file

Implements the ES private fields proposal that ships in TypeScript 3.8, adding a private identifier token in the scanner, a private field AST node in the parser, and class-scoped symbols in the binder so usages link to declarations. Checker emits targeted errors for shadowing and illegal delete. Transformer converts fields to a WeakMap transformation with runtime brand checks, handles tricky cases like postfix ++ and destructuring, reports a V8 bug fixed and test262 case added, and lands via open GitHub collaboration.

AI-written summary · about

  1. 0:00Start
  2. 0:32Private Fields
  3. 0:57Typescript Private Keyword
  4. 3:10The Ecmascript Specification
  5. 3:27The Scanner
  6. 3:57Private Identifier
  7. 5:17Parser
  8. 5:28Syntactic Grammar
  9. 6:07Abstract Syntax Tree Mean
  10. 6:27Typescript Ast Viewer
  11. 6:39Ast Viewer
  12. 8:10The Binder
  13. 13:08Transformer Phase
  14. 13:55To Transform Private Fields
  15. 16:53Type Error Exception
  16. 17:23Postfix Unary Increment
  17. 18:50To Transform the Structuring Assignment into a Private Field
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.