mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Update LKG.
This commit is contained in:
@@ -60434,7 +60434,9 @@ var ts;
|
||||
if (node.kind === 241 /* VariableDeclaration */ || node.kind === 190 /* BindingElement */) {
|
||||
checkVarDeclaredNamesNotShadowed(node);
|
||||
}
|
||||
// eslint-disable-next-line
|
||||
checkCollisionWithRequireExportsInGeneratedCode(node, node.name);
|
||||
// eslint-disable-next-line
|
||||
checkCollisionWithGlobalPromiseInGeneratedCode(node, node.name);
|
||||
}
|
||||
}
|
||||
@@ -65093,9 +65095,11 @@ var ts;
|
||||
node.kind === 200 /* FunctionExpression */ ||
|
||||
node.kind === 160 /* MethodDeclaration */);
|
||||
if (node.flags & 8388608 /* Ambient */) {
|
||||
// eslint-disable-next-line
|
||||
return grammarErrorOnNode(node.asteriskToken, ts.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);
|
||||
}
|
||||
if (!node.body) {
|
||||
// eslint-disable-next-line
|
||||
return grammarErrorOnNode(node.asteriskToken, ts.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60584,7 +60584,9 @@ var ts;
|
||||
if (node.kind === 241 /* VariableDeclaration */ || node.kind === 190 /* BindingElement */) {
|
||||
checkVarDeclaredNamesNotShadowed(node);
|
||||
}
|
||||
// eslint-disable-next-line
|
||||
checkCollisionWithRequireExportsInGeneratedCode(node, node.name);
|
||||
// eslint-disable-next-line
|
||||
checkCollisionWithGlobalPromiseInGeneratedCode(node, node.name);
|
||||
}
|
||||
}
|
||||
@@ -65243,9 +65245,11 @@ var ts;
|
||||
node.kind === 200 /* FunctionExpression */ ||
|
||||
node.kind === 160 /* MethodDeclaration */);
|
||||
if (node.flags & 8388608 /* Ambient */) {
|
||||
// eslint-disable-next-line
|
||||
return grammarErrorOnNode(node.asteriskToken, ts.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);
|
||||
}
|
||||
if (!node.body) {
|
||||
// eslint-disable-next-line
|
||||
return grammarErrorOnNode(node.asteriskToken, ts.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60573,7 +60573,9 @@ var ts;
|
||||
if (node.kind === 241 /* VariableDeclaration */ || node.kind === 190 /* BindingElement */) {
|
||||
checkVarDeclaredNamesNotShadowed(node);
|
||||
}
|
||||
// eslint-disable-next-line
|
||||
checkCollisionWithRequireExportsInGeneratedCode(node, node.name);
|
||||
// eslint-disable-next-line
|
||||
checkCollisionWithGlobalPromiseInGeneratedCode(node, node.name);
|
||||
}
|
||||
}
|
||||
@@ -65232,9 +65234,11 @@ var ts;
|
||||
node.kind === 200 /* FunctionExpression */ ||
|
||||
node.kind === 160 /* MethodDeclaration */);
|
||||
if (node.flags & 8388608 /* Ambient */) {
|
||||
// eslint-disable-next-line
|
||||
return grammarErrorOnNode(node.asteriskToken, ts.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);
|
||||
}
|
||||
if (!node.body) {
|
||||
// eslint-disable-next-line
|
||||
return grammarErrorOnNode(node.asteriskToken, ts.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60573,7 +60573,9 @@ var ts;
|
||||
if (node.kind === 241 /* VariableDeclaration */ || node.kind === 190 /* BindingElement */) {
|
||||
checkVarDeclaredNamesNotShadowed(node);
|
||||
}
|
||||
// eslint-disable-next-line
|
||||
checkCollisionWithRequireExportsInGeneratedCode(node, node.name);
|
||||
// eslint-disable-next-line
|
||||
checkCollisionWithGlobalPromiseInGeneratedCode(node, node.name);
|
||||
}
|
||||
}
|
||||
@@ -65232,9 +65234,11 @@ var ts;
|
||||
node.kind === 200 /* FunctionExpression */ ||
|
||||
node.kind === 160 /* MethodDeclaration */);
|
||||
if (node.flags & 8388608 /* Ambient */) {
|
||||
// eslint-disable-next-line
|
||||
return grammarErrorOnNode(node.asteriskToken, ts.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);
|
||||
}
|
||||
if (!node.body) {
|
||||
// eslint-disable-next-line
|
||||
return grammarErrorOnNode(node.asteriskToken, ts.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60423,7 +60423,9 @@ var ts;
|
||||
if (node.kind === 241 /* VariableDeclaration */ || node.kind === 190 /* BindingElement */) {
|
||||
checkVarDeclaredNamesNotShadowed(node);
|
||||
}
|
||||
// eslint-disable-next-line
|
||||
checkCollisionWithRequireExportsInGeneratedCode(node, node.name);
|
||||
// eslint-disable-next-line
|
||||
checkCollisionWithGlobalPromiseInGeneratedCode(node, node.name);
|
||||
}
|
||||
}
|
||||
@@ -65082,9 +65084,11 @@ var ts;
|
||||
node.kind === 200 /* FunctionExpression */ ||
|
||||
node.kind === 160 /* MethodDeclaration */);
|
||||
if (node.flags & 8388608 /* Ambient */) {
|
||||
// eslint-disable-next-line
|
||||
return grammarErrorOnNode(node.asteriskToken, ts.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);
|
||||
}
|
||||
if (!node.body) {
|
||||
// eslint-disable-next-line
|
||||
return grammarErrorOnNode(node.asteriskToken, ts.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user