ast语法树

1.type含义:

Identifier:最终我们需要获取的参数值的type

Property:当存在解构参数,例如[a,b] or {x,y}

ArrayPattern:存在解构参数并且是数组,例如[a,b]

ObjectPattern:存在解构参数并且是对象,例如{x,y}

RestElement:存在扩展运算符,例如(...args)

ArrowFunctionExpression:变量函数

ExpressionStatement:表达式语句

VariableDeclaration:变量声明语句,一定会有init

猜你喜欢

转载自www.cnblogs.com/xinsir/p/12171833.html