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