AST

The abstract syntax tree (AST) is a tree-like data structure created by the parser. This data structure allows the TypeScript compiler to traverse our source code to perform many core tasks, such as emitting the output JavaScript code. We are going to learn more about the AST later in this chapter.

Get Learning TypeScript 2.x - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.