You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ES2020's optional chaining brings some additions to the AST that will need to be addressed here (and in code-red) before they can be supported in Svelte.
The PR estree/estree#204 has not been merged yet but the spec apparently is final. Roughly, there's a new ChainExpression type that only has an expression key, and it's this expression that contains the chain of member and call expressions with a new optional boolean on each one.
Before this can be done properly, we might need to wait for @types/estree to be released.
The text was updated successfully, but these errors were encountered:
Digging more into what this library is doing, I'm beginning to think there isn't any work here to do. The only place where we're specially interacting with MemberExpressions is in extracting identifiers/names from variable declarations and function parameters, and ChainExpressions can't occur there in a way that would affect us.
ES2020's optional chaining brings some additions to the AST that will need to be addressed here (and in code-red) before they can be supported in Svelte.
The PR estree/estree#204 has not been merged yet but the spec apparently is final. Roughly, there's a new
ChainExpression
type that only has anexpression
key, and it's this expression that contains the chain of member and call expressions with a newoptional
boolean on each one.Before this can be done properly, we might need to wait for
@types/estree
to be released.The text was updated successfully, but these errors were encountered: