Skip to content

Commit 31b4bca

Browse files
committed
remove dead code and fix comment
1 parent 13058c5 commit 31b4bca

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/compiler/binder.ts

-2
Original file line numberDiff line numberDiff 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

src/compiler/utilitiesPublic.ts

+1-1
Original file line numberDiff line numberDiff 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?.`)

0 commit comments

Comments
 (0)