Determines if node is the root expression of an OptionalChain
(node *Expression)
| 360 | |
| 361 | // Determines if node is the root expression of an OptionalChain |
| 362 | func IsOptionalChainRoot(node *Expression) bool { |
| 363 | return IsOptionalChain(node) && !IsNonNullExpression(node) && getQuestionDotToken(node) != nil |
| 364 | } |
| 365 | |
| 366 | // Determines whether a node is the outermost `OptionalChain` in an ECMAScript `OptionalExpression`: |
| 367 | // |
no test coverage detected