File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -1685,8 +1685,6 @@ namespace ts {
16851685 bindEach ( node . typeArguments ) ;
16861686 bindEach ( node . arguments ) ;
16871687 break ;
1688- case SyntaxKind . NonNullExpression :
1689- break ;
16901688 }
16911689 }
16921690
Original file line number Diff line number Diff line change @@ -1112,7 +1112,7 @@ namespace ts {
11121112 * Determines whether a node is the outermost `OptionalChain` in an ECMAScript `OptionalExpression`:
11131113 *
11141114 * 1. For `a?.b.c`, the outermost chain is `a?.b.c` (`c` is the end of the chain starting at `a?.`)
1115- * 2. For `a?.b!`, the outermost chain is `a?.b! ` (`c ` is the end of the chain starting at `a?.`)
1115+ * 2. For `a?.b!`, the outermost chain is `a?.b` (`b ` is the end of the chain starting at `a?.`)
11161116 * 3. For `(a?.b.c).d`, the outermost chain is `a?.b.c` (`c` is the end of the chain starting at `a?.` since parens end the chain)
11171117 * 4. For `a?.b.c?.d`, both `a?.b.c` and `a?.b.c?.d` are outermost (`c` is the end of the chain starting at `a?.`, and `d` is
11181118 * the end of the chain starting at `c?.`)
You can’t perform that action at this time.
0 commit comments