File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30102,8 +30102,8 @@ namespace ts {
30102
30102
if (node.kind === SyntaxKind.VariableDeclaration || node.kind === SyntaxKind.BindingElement) {
30103
30103
checkVarDeclaredNamesNotShadowed(node);
30104
30104
}
30105
- checkCollisionWithRequireExportsInGeneratedCode(node, <Identifier> node.name);
30106
- checkCollisionWithGlobalPromiseInGeneratedCode(node, <Identifier> node.name);
30105
+ checkCollisionWithRequireExportsInGeneratedCode(node, node.name);
30106
+ checkCollisionWithGlobalPromiseInGeneratedCode(node, node.name);
30107
30107
}
30108
30108
}
30109
30109
@@ -35268,10 +35268,10 @@ namespace ts {
35268
35268
node.kind === SyntaxKind.FunctionExpression ||
35269
35269
node.kind === SyntaxKind.MethodDeclaration);
35270
35270
if (node.flags & NodeFlags.Ambient) {
35271
- return grammarErrorOnNode(node.asteriskToken! , Diagnostics.Generators_are_not_allowed_in_an_ambient_context);
35271
+ return grammarErrorOnNode(node.asteriskToken, Diagnostics.Generators_are_not_allowed_in_an_ambient_context);
35272
35272
}
35273
35273
if (!node.body) {
35274
- return grammarErrorOnNode(node.asteriskToken! , Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator);
35274
+ return grammarErrorOnNode(node.asteriskToken, Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator);
35275
35275
}
35276
35276
}
35277
35277
}
You can’t perform that action at this time.
0 commit comments