| Program | 整个 JS 程序的根节点 |
| ImportDeclaration | import ... from '...' 导入语句 |
| ExportNamedDeclaration / ExportDefaultDeclaration | 导出语句 |
| FunctionDeclaration | 声明式函数,例如 function foo() {} |
| FunctionExpression | 函数表达式,例如 const f = function() {} |
| ArrowFunctionExpression | 箭头函数,例如 const f = () => {} |
| VariableDeclaration | 变量声明,如 const、let、var |
| VariableDeclarator | 变量声明器,const a = 1 中的 a = 1 |
| CallExpression | 函数调用,例如 foo() |
| MemberExpression | 对象属性访问,如 obj.prop 或 obj['prop'] |
| Identifier | 标识符,如变量名、函数名 |
| Literal(或在 Babel 中叫 StringLiteral, NumericLiteral 等) | 字面量,例如 'a', 123 |
| ExpressionStatement | 表达式语句,例如 a + b; |
| IfStatement | if 条件语句 |
| ForStatement / WhileStatement / DoWhileStatement | 循环语句 |
| ReturnStatement | 返回语句 |
| BlockStatement | 代码块 { ... } |
| ObjectExpression | 对象字面量 { key: value } |
| ArrayExpression | 数组字面量 [1, 2, 3] |
| AssignmentExpression | 赋值表达式,例如 a = b |
| BinaryExpression | 二元运算表达式,如 a + b, a * b |
| UnaryExpression | 一元运算,例如 !a, typeof a |
| LogicalExpression | 逻辑运算,如 a && b |
| ConditionalExpression | 三元表达式,如 a ? b : c |
| NewExpression | new 操作符,例如 new Date() |
| ThisExpression | this 关键字 |
| TemplateLiteral | 模板字符串,如 `Hello, ${name}` |
| TaggedTemplateExpression | 标签模板,如 styled.div...`` |