diff --git a/src/ast/nodes.ts b/src/ast/nodes.ts index a6c1c647..3ca9d63b 100644 --- a/src/ast/nodes.ts +++ b/src/ast/nodes.ts @@ -348,6 +348,7 @@ export type ESLintExpression = | ESLintMetaProperty | ESLintIdentifier | ESLintAwaitExpression + | ESLintChainExpression export interface ESLintIdentifier extends HasLocation, HasParent { type: "Identifier" @@ -493,6 +494,7 @@ export interface ESLintConditionalExpression extends HasLocation, HasParent { export interface ESLintCallExpression extends HasLocation, HasParent { type: "CallExpression" + optional: boolean callee: ESLintExpression | ESLintSuper arguments: (ESLintExpression | ESLintSpreadElement)[] } @@ -509,6 +511,7 @@ export interface ESLintNewExpression extends HasLocation, HasParent { export interface ESLintMemberExpression extends HasLocation, HasParent { type: "MemberExpression" + optional: boolean computed: boolean object: ESLintExpression | ESLintSuper property: ESLintExpression @@ -604,6 +607,11 @@ export interface ESLintAssignmentPattern extends HasLocation, HasParent { right: ESLintExpression } +export interface ESLintChainExpression extends HasLocation, HasParent { + type: "ChainExpression" + expression: ESLintExpression +} + /** * Legacy for babel-eslint and espree. */