mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-07 14:34:35 -06:00
Update LKG.
This commit is contained in:
parent
53105b3aff
commit
f4a643fdf0
@ -25919,7 +25919,7 @@ var ts;
|
||||
}
|
||||
function checkResolvedBlockScopedVariable(result, errorLocation) {
|
||||
ts.Debug.assert(!!(result.flags & 2 || result.flags & 32 || result.flags & 384));
|
||||
var declaration = ts.forEach(result.declarations, function (d) { return ts.isBlockOrCatchScoped(d) || ts.isClassLike(d) || (d.kind === 241) ? d : undefined; });
|
||||
var declaration = ts.find(result.declarations, function (d) { return ts.isBlockOrCatchScoped(d) || ts.isClassLike(d) || (d.kind === 241) || ts.isInJSFile(d) && !!ts.getJSDocEnumTag(d); });
|
||||
if (declaration === undefined)
|
||||
return ts.Debug.fail("Declaration to checkResolvedBlockScopedVariable is undefined");
|
||||
if (!(declaration.flags & 4194304) && !isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) {
|
||||
|
||||
@ -31759,7 +31759,7 @@ var ts;
|
||||
function checkResolvedBlockScopedVariable(result, errorLocation) {
|
||||
ts.Debug.assert(!!(result.flags & 2 /* BlockScopedVariable */ || result.flags & 32 /* Class */ || result.flags & 384 /* Enum */));
|
||||
// Block-scoped variables cannot be used before their definition
|
||||
var declaration = ts.forEach(result.declarations, function (d) { return ts.isBlockOrCatchScoped(d) || ts.isClassLike(d) || (d.kind === 241 /* EnumDeclaration */) ? d : undefined; });
|
||||
var declaration = ts.find(result.declarations, function (d) { return ts.isBlockOrCatchScoped(d) || ts.isClassLike(d) || (d.kind === 241 /* EnumDeclaration */) || ts.isInJSFile(d) && !!ts.getJSDocEnumTag(d); });
|
||||
if (declaration === undefined)
|
||||
return ts.Debug.fail("Declaration to checkResolvedBlockScopedVariable is undefined");
|
||||
if (!(declaration.flags & 4194304 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) {
|
||||
|
||||
@ -31755,7 +31755,7 @@ var ts;
|
||||
function checkResolvedBlockScopedVariable(result, errorLocation) {
|
||||
ts.Debug.assert(!!(result.flags & 2 /* BlockScopedVariable */ || result.flags & 32 /* Class */ || result.flags & 384 /* Enum */));
|
||||
// Block-scoped variables cannot be used before their definition
|
||||
var declaration = ts.forEach(result.declarations, function (d) { return ts.isBlockOrCatchScoped(d) || ts.isClassLike(d) || (d.kind === 241 /* EnumDeclaration */) ? d : undefined; });
|
||||
var declaration = ts.find(result.declarations, function (d) { return ts.isBlockOrCatchScoped(d) || ts.isClassLike(d) || (d.kind === 241 /* EnumDeclaration */) || ts.isInJSFile(d) && !!ts.getJSDocEnumTag(d); });
|
||||
if (declaration === undefined)
|
||||
return ts.Debug.fail("Declaration to checkResolvedBlockScopedVariable is undefined");
|
||||
if (!(declaration.flags & 4194304 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) {
|
||||
|
||||
@ -31746,7 +31746,7 @@ var ts;
|
||||
function checkResolvedBlockScopedVariable(result, errorLocation) {
|
||||
ts.Debug.assert(!!(result.flags & 2 /* BlockScopedVariable */ || result.flags & 32 /* Class */ || result.flags & 384 /* Enum */));
|
||||
// Block-scoped variables cannot be used before their definition
|
||||
var declaration = ts.forEach(result.declarations, function (d) { return ts.isBlockOrCatchScoped(d) || ts.isClassLike(d) || (d.kind === 241 /* EnumDeclaration */) ? d : undefined; });
|
||||
var declaration = ts.find(result.declarations, function (d) { return ts.isBlockOrCatchScoped(d) || ts.isClassLike(d) || (d.kind === 241 /* EnumDeclaration */) || ts.isInJSFile(d) && !!ts.getJSDocEnumTag(d); });
|
||||
if (declaration === undefined)
|
||||
return ts.Debug.fail("Declaration to checkResolvedBlockScopedVariable is undefined");
|
||||
if (!(declaration.flags & 4194304 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) {
|
||||
|
||||
@ -31746,7 +31746,7 @@ var ts;
|
||||
function checkResolvedBlockScopedVariable(result, errorLocation) {
|
||||
ts.Debug.assert(!!(result.flags & 2 /* BlockScopedVariable */ || result.flags & 32 /* Class */ || result.flags & 384 /* Enum */));
|
||||
// Block-scoped variables cannot be used before their definition
|
||||
var declaration = ts.forEach(result.declarations, function (d) { return ts.isBlockOrCatchScoped(d) || ts.isClassLike(d) || (d.kind === 241 /* EnumDeclaration */) ? d : undefined; });
|
||||
var declaration = ts.find(result.declarations, function (d) { return ts.isBlockOrCatchScoped(d) || ts.isClassLike(d) || (d.kind === 241 /* EnumDeclaration */) || ts.isInJSFile(d) && !!ts.getJSDocEnumTag(d); });
|
||||
if (declaration === undefined)
|
||||
return ts.Debug.fail("Declaration to checkResolvedBlockScopedVariable is undefined");
|
||||
if (!(declaration.flags & 4194304 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) {
|
||||
|
||||
@ -31759,7 +31759,7 @@ var ts;
|
||||
function checkResolvedBlockScopedVariable(result, errorLocation) {
|
||||
ts.Debug.assert(!!(result.flags & 2 /* BlockScopedVariable */ || result.flags & 32 /* Class */ || result.flags & 384 /* Enum */));
|
||||
// Block-scoped variables cannot be used before their definition
|
||||
var declaration = ts.forEach(result.declarations, function (d) { return ts.isBlockOrCatchScoped(d) || ts.isClassLike(d) || (d.kind === 241 /* EnumDeclaration */) ? d : undefined; });
|
||||
var declaration = ts.find(result.declarations, function (d) { return ts.isBlockOrCatchScoped(d) || ts.isClassLike(d) || (d.kind === 241 /* EnumDeclaration */) || ts.isInJSFile(d) && !!ts.getJSDocEnumTag(d); });
|
||||
if (declaration === undefined)
|
||||
return ts.Debug.fail("Declaration to checkResolvedBlockScopedVariable is undefined");
|
||||
if (!(declaration.flags & 4194304 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user