@@ -67,30 +67,31 @@ var ast = parser.ParseScript("console.log('Hello world!')");
6767
6868```
6969Node [x]
70- ├─ArrayPattern : IDestructuringPattern [v,s]
71- ├─AssignmentPattern : IDestructuringPattern [v,s]
70+ ├─AssignmentPattern : IDestructuringElement [v,s]
7271 ├─CatchClause [v,s]
7372 ├─ClassBody [v,s]
7473 ├─ClassProperty : IClassElement, IProperty
7574 │ ├─AccessorProperty : IClassElement, IProperty [v,s]
7675 │ ├─MethodDefinition : IClassElement, IProperty [v,s]
7776 │ └─PropertyDefinition : IClassElement, IProperty [v,s]
7877 ├─Decorator [v,s]
78+ ├─DestructuringPattern : IDestructuringElement
79+ │ ├─ArrayPattern : IDestructuringElement [v,s]
80+ │ └─ObjectPattern : IDestructuringElement [v,s]
7981 ├─ImportAttribute [v,s]
8082 ├─ModuleSpecifier
8183 │ ├─ExportSpecifier [v,s]
8284 │ └─ImportDeclarationSpecifier
8385 │ ├─ImportDefaultSpecifier [v,s]
8486 │ ├─ImportNamespaceSpecifier [v,s]
8587 │ └─ImportSpecifier [v,s]
86- ├─ObjectPattern : IDestructuringPattern [v,s]
87- ├─Program : IVarScope [v]
88- │ ├─Module : IVarScope [s]
89- │ └─Script : IVarScope [s]
88+ ├─Program : IHoistingScope [v]
89+ │ ├─Module : IHoistingScope [s]
90+ │ └─Script : IHoistingScope [s]
9091 ├─Property : IProperty [v]
9192 │ ├─AssignmentProperty : IProperty [s]
9293 │ └─ObjectProperty : IProperty [s]
93- ├─RestElement : IDestructuringPattern [v,s]
94+ ├─RestElement : IDestructuringElement [v,s]
9495 ├─StatementOrExpression
9596 │ ├─Expression [x]
9697 │ │ ├─ArrayExpression [v,s]
@@ -105,7 +106,7 @@ Node [x]
105106 │ │ ├─ClassExpression : IClass [v,s]
106107 │ │ ├─ConditionalExpression [v,s]
107108 │ │ ├─FunctionExpression : IFunction [v,s]
108- │ │ ├─Identifier : IDestructuringPattern [v,s]
109+ │ │ ├─Identifier : IDestructuringElement [v,s]
109110 │ │ ├─ImportExpression [v,s]
110111 │ │ ├─Literal [v]
111112 │ │ │ ├─BigIntLiteral [s]
@@ -114,7 +115,7 @@ Node [x]
114115 │ │ │ ├─NumericLiteral [s]
115116 │ │ │ ├─RegExpLiteral [s]
116117 │ │ │ └─StringLiteral [s]
117- │ │ ├─MemberExpression : IChainElement, IDestructuringPattern [v,s]
118+ │ │ ├─MemberExpression : IChainElement, IDestructuringElement [v,s]
118119 │ │ ├─MetaProperty [v,s]
119120 │ │ ├─NewExpression [v,s]
120121 │ │ ├─ObjectExpression [v,s]
@@ -132,9 +133,9 @@ Node [x]
132133 │ │ └─YieldExpression [v,s]
133134 │ └─Statement [x]
134135 │ ├─BlockStatement [v]
135- │ │ ├─FunctionBody : IVarScope [s]
136+ │ │ ├─FunctionBody : IHoistingScope [s]
136137 │ │ ├─NestedBlockStatement [s]
137- │ │ └─StaticBlock : IClassElement, IVarScope [v,s]
138+ │ │ └─StaticBlock : IClassElement, IHoistingScope [v,s]
138139 │ ├─BreakStatement [v,s]
139140 │ ├─ContinueStatement [v,s]
140141 │ ├─DebuggerStatement [v,s]
0 commit comments