Skip to content

Commit

Permalink
Update LKG.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRosenwasser committed Jan 16, 2020
1 parent 609a605 commit 9ba45fc
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/tsserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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);
}
}
Expand Down
4 changes: 4 additions & 0 deletions lib/tsserverlibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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);
}
}
Expand Down
4 changes: 4 additions & 0 deletions lib/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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);
}
}
Expand Down
4 changes: 4 additions & 0 deletions lib/typescriptServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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);
}
}
Expand Down
4 changes: 4 additions & 0 deletions lib/typingsInstaller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 9ba45fc

Please sign in to comment.