File tree Expand file tree Collapse file tree 4 files changed +0
-9
lines changed Expand file tree Collapse file tree 4 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -1137,7 +1137,6 @@ namespace ts {
1137
1137
case SyntaxKind . FunctionExpression :
1138
1138
case SyntaxKind . FunctionDeclaration :
1139
1139
case SyntaxKind . ArrowFunction :
1140
- case SyntaxKind . FunctionDeclaration :
1141
1140
case SyntaxKind . VariableDeclaration :
1142
1141
// type annotation
1143
1142
if ( ( < FunctionLikeDeclaration | VariableDeclaration | ParameterDeclaration | PropertyDeclaration > parent ) . type === node ) {
@@ -1202,7 +1201,6 @@ namespace ts {
1202
1201
case SyntaxKind . FunctionExpression :
1203
1202
case SyntaxKind . FunctionDeclaration :
1204
1203
case SyntaxKind . ArrowFunction :
1205
- case SyntaxKind . FunctionDeclaration :
1206
1204
// Check type parameters
1207
1205
if ( nodes === ( < ClassDeclaration | FunctionLikeDeclaration > parent ) . typeParameters ) {
1208
1206
diagnostics . push ( createDiagnosticForNodeArray ( nodes , Diagnostics . type_parameter_declarations_can_only_be_used_in_a_ts_file ) ) ;
Original file line number Diff line number Diff line change @@ -1155,7 +1155,6 @@ namespace ts {
1155
1155
1156
1156
export function isPartOfExpression ( node : Node ) : boolean {
1157
1157
switch ( node . kind ) {
1158
- case SyntaxKind . ThisKeyword :
1159
1158
case SyntaxKind . SuperKeyword :
1160
1159
case SyntaxKind . NullKeyword :
1161
1160
case SyntaxKind . TrueKeyword :
@@ -1224,7 +1223,6 @@ namespace ts {
1224
1223
case SyntaxKind . SwitchStatement :
1225
1224
case SyntaxKind . CaseClause :
1226
1225
case SyntaxKind . ThrowStatement :
1227
- case SyntaxKind . SwitchStatement :
1228
1226
return ( < ExpressionStatement > parent ) . expression === node ;
1229
1227
case SyntaxKind . ForStatement :
1230
1228
const forStatement = < ForStatement > parent ;
Original file line number Diff line number Diff line change @@ -1148,10 +1148,6 @@ namespace ts {
1148
1148
result = reduceNode ( ( < AsExpression > node ) . type , cbNode , result ) ;
1149
1149
break ;
1150
1150
1151
- case SyntaxKind . NonNullExpression :
1152
- result = reduceNode ( ( < NonNullExpression > node ) . expression , cbNode , result ) ;
1153
- break ;
1154
-
1155
1151
// Misc
1156
1152
case SyntaxKind . TemplateSpan :
1157
1153
result = reduceNode ( ( < TemplateSpan > node ) . expression , cbNode , result ) ;
Original file line number Diff line number Diff line change @@ -657,7 +657,6 @@ namespace ts {
657
657
case SyntaxKind . ImportEqualsDeclaration :
658
658
case SyntaxKind . ExportSpecifier :
659
659
case SyntaxKind . ImportSpecifier :
660
- case SyntaxKind . ImportEqualsDeclaration :
661
660
case SyntaxKind . ImportClause :
662
661
case SyntaxKind . NamespaceImport :
663
662
case SyntaxKind . GetAccessor :
You can’t perform that action at this time.
0 commit comments