Skip to content

Commit

Permalink
Bump version to 4.6.3 and LKG
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Mar 16, 2022
1 parent cfdef9d commit 2bed482
Show file tree
Hide file tree
Showing 9 changed files with 155 additions and 67 deletions.
2 changes: 1 addition & 1 deletion lib/lib.es2022.object.d.ts
Expand Up @@ -18,7 +18,7 @@ and limitations under the License.
/// <reference no-default-lib="true"/>


interface Object {
interface ObjectConstructor {
/**
* Determines whether an object has a property with the specified name.
* @param o An object.
Expand Down
6 changes: 2 additions & 4 deletions lib/tsc.js
Expand Up @@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
var ts;
(function (ts) {
ts.versionMajorMinor = "4.6";
ts.version = "4.6.2";
ts.version = "4.6.3";
var NativeCollections;
(function (NativeCollections) {
var globals = typeof globalThis !== "undefined" ? globalThis :
Expand Down Expand Up @@ -25262,9 +25262,7 @@ var ts;
return;
}
if (initializer) {
if (token() === 18) {
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26));
}
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26));
return;
}
parseErrorForMissingSemicolonAfter(name);
Expand Down
49 changes: 37 additions & 12 deletions lib/tsserver.js
Expand Up @@ -100,7 +100,7 @@ var ts;
// The following is baselined as a literal template type without intervention
/** The version of the TypeScript compiler release */
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
ts.version = "4.6.2";
ts.version = "4.6.3";
/* @internal */
var Comparison;
(function (Comparison) {
Expand Down Expand Up @@ -31354,18 +31354,8 @@ var ts;
if (tryParseSemicolon()) {
return;
}
// If an initializer was parsed but there is still an error in finding the next semicolon,
// we generally know there was an error already reported in the initializer...
// class Example { a = new Map([), ) }
// ~
if (initializer) {
// ...unless we've found the start of a block after a property declaration, in which
// case we can know that regardless of the initializer we should complain on the block.
// class Example { a = 0 {} }
// ~
if (token() === 18 /* OpenBraceToken */) {
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));
}
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));
return;
}
parseErrorForMissingSemicolonAfter(name);
Expand Down Expand Up @@ -140014,6 +140004,41 @@ var ts;
if (ts.scanner.getToken() === 1 /* EndOfFileToken */) {
break;
}
if (ts.scanner.getToken() === 15 /* TemplateHead */) {
var stack = [ts.scanner.getToken()];
var token = ts.scanner.scan();
loop: while (ts.length(stack)) {
switch (token) {
case 1 /* EndOfFileToken */:
break loop;
case 100 /* ImportKeyword */:
tryConsumeImport();
break;
case 15 /* TemplateHead */:
stack.push(token);
break;
case 18 /* OpenBraceToken */:
if (ts.length(stack)) {
stack.push(token);
}
break;
case 19 /* CloseBraceToken */:
if (ts.length(stack)) {
if (ts.lastOrUndefined(stack) === 15 /* TemplateHead */) {
if (ts.scanner.reScanTemplateToken(/* isTaggedTemplate */ false) === 17 /* TemplateTail */) {
stack.pop();
}
}
else {
stack.pop();
}
}
break;
}
token = ts.scanner.scan();
}
nextToken();
}
// check if at least one of alternative have moved scanner forward
if (tryConsumeDeclare() ||
tryConsumeImport() ||
Expand Down
49 changes: 37 additions & 12 deletions lib/tsserverlibrary.js
Expand Up @@ -294,7 +294,7 @@ var ts;
// The following is baselined as a literal template type without intervention
/** The version of the TypeScript compiler release */
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
ts.version = "4.6.2";
ts.version = "4.6.3";
/* @internal */
var Comparison;
(function (Comparison) {
Expand Down Expand Up @@ -31548,18 +31548,8 @@ var ts;
if (tryParseSemicolon()) {
return;
}
// If an initializer was parsed but there is still an error in finding the next semicolon,
// we generally know there was an error already reported in the initializer...
// class Example { a = new Map([), ) }
// ~
if (initializer) {
// ...unless we've found the start of a block after a property declaration, in which
// case we can know that regardless of the initializer we should complain on the block.
// class Example { a = 0 {} }
// ~
if (token() === 18 /* OpenBraceToken */) {
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));
}
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));
return;
}
parseErrorForMissingSemicolonAfter(name);
Expand Down Expand Up @@ -140625,6 +140615,41 @@ var ts;
if (ts.scanner.getToken() === 1 /* EndOfFileToken */) {
break;
}
if (ts.scanner.getToken() === 15 /* TemplateHead */) {
var stack = [ts.scanner.getToken()];
var token = ts.scanner.scan();
loop: while (ts.length(stack)) {
switch (token) {
case 1 /* EndOfFileToken */:
break loop;
case 100 /* ImportKeyword */:
tryConsumeImport();
break;
case 15 /* TemplateHead */:
stack.push(token);
break;
case 18 /* OpenBraceToken */:
if (ts.length(stack)) {
stack.push(token);
}
break;
case 19 /* CloseBraceToken */:
if (ts.length(stack)) {
if (ts.lastOrUndefined(stack) === 15 /* TemplateHead */) {
if (ts.scanner.reScanTemplateToken(/* isTaggedTemplate */ false) === 17 /* TemplateTail */) {
stack.pop();
}
}
else {
stack.pop();
}
}
break;
}
token = ts.scanner.scan();
}
nextToken();
}
// check if at least one of alternative have moved scanner forward
if (tryConsumeDeclare() ||
tryConsumeImport() ||
Expand Down
49 changes: 37 additions & 12 deletions lib/typescript.js
Expand Up @@ -294,7 +294,7 @@ var ts;
// The following is baselined as a literal template type without intervention
/** The version of the TypeScript compiler release */
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
ts.version = "4.6.2";
ts.version = "4.6.3";
/* @internal */
var Comparison;
(function (Comparison) {
Expand Down Expand Up @@ -31548,18 +31548,8 @@ var ts;
if (tryParseSemicolon()) {
return;
}
// If an initializer was parsed but there is still an error in finding the next semicolon,
// we generally know there was an error already reported in the initializer...
// class Example { a = new Map([), ) }
// ~
if (initializer) {
// ...unless we've found the start of a block after a property declaration, in which
// case we can know that regardless of the initializer we should complain on the block.
// class Example { a = 0 {} }
// ~
if (token() === 18 /* OpenBraceToken */) {
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));
}
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));
return;
}
parseErrorForMissingSemicolonAfter(name);
Expand Down Expand Up @@ -140625,6 +140615,41 @@ var ts;
if (ts.scanner.getToken() === 1 /* EndOfFileToken */) {
break;
}
if (ts.scanner.getToken() === 15 /* TemplateHead */) {
var stack = [ts.scanner.getToken()];
var token = ts.scanner.scan();
loop: while (ts.length(stack)) {
switch (token) {
case 1 /* EndOfFileToken */:
break loop;
case 100 /* ImportKeyword */:
tryConsumeImport();
break;
case 15 /* TemplateHead */:
stack.push(token);
break;
case 18 /* OpenBraceToken */:
if (ts.length(stack)) {
stack.push(token);
}
break;
case 19 /* CloseBraceToken */:
if (ts.length(stack)) {
if (ts.lastOrUndefined(stack) === 15 /* TemplateHead */) {
if (ts.scanner.reScanTemplateToken(/* isTaggedTemplate */ false) === 17 /* TemplateTail */) {
stack.pop();
}
}
else {
stack.pop();
}
}
break;
}
token = ts.scanner.scan();
}
nextToken();
}
// check if at least one of alternative have moved scanner forward
if (tryConsumeDeclare() ||
tryConsumeImport() ||
Expand Down
49 changes: 37 additions & 12 deletions lib/typescriptServices.js
Expand Up @@ -294,7 +294,7 @@ var ts;
// The following is baselined as a literal template type without intervention
/** The version of the TypeScript compiler release */
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
ts.version = "4.6.2";
ts.version = "4.6.3";
/* @internal */
var Comparison;
(function (Comparison) {
Expand Down Expand Up @@ -31548,18 +31548,8 @@ var ts;
if (tryParseSemicolon()) {
return;
}
// If an initializer was parsed but there is still an error in finding the next semicolon,
// we generally know there was an error already reported in the initializer...
// class Example { a = new Map([), ) }
// ~
if (initializer) {
// ...unless we've found the start of a block after a property declaration, in which
// case we can know that regardless of the initializer we should complain on the block.
// class Example { a = 0 {} }
// ~
if (token() === 18 /* OpenBraceToken */) {
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));
}
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));
return;
}
parseErrorForMissingSemicolonAfter(name);
Expand Down Expand Up @@ -140625,6 +140615,41 @@ var ts;
if (ts.scanner.getToken() === 1 /* EndOfFileToken */) {
break;
}
if (ts.scanner.getToken() === 15 /* TemplateHead */) {
var stack = [ts.scanner.getToken()];
var token = ts.scanner.scan();
loop: while (ts.length(stack)) {
switch (token) {
case 1 /* EndOfFileToken */:
break loop;
case 100 /* ImportKeyword */:
tryConsumeImport();
break;
case 15 /* TemplateHead */:
stack.push(token);
break;
case 18 /* OpenBraceToken */:
if (ts.length(stack)) {
stack.push(token);
}
break;
case 19 /* CloseBraceToken */:
if (ts.length(stack)) {
if (ts.lastOrUndefined(stack) === 15 /* TemplateHead */) {
if (ts.scanner.reScanTemplateToken(/* isTaggedTemplate */ false) === 17 /* TemplateTail */) {
stack.pop();
}
}
else {
stack.pop();
}
}
break;
}
token = ts.scanner.scan();
}
nextToken();
}
// check if at least one of alternative have moved scanner forward
if (tryConsumeDeclare() ||
tryConsumeImport() ||
Expand Down
14 changes: 2 additions & 12 deletions lib/typingsInstaller.js
Expand Up @@ -89,7 +89,7 @@ var ts;
// The following is baselined as a literal template type without intervention
/** The version of the TypeScript compiler release */
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
ts.version = "4.6.2";
ts.version = "4.6.3";
/* @internal */
var Comparison;
(function (Comparison) {
Expand Down Expand Up @@ -31343,18 +31343,8 @@ var ts;
if (tryParseSemicolon()) {
return;
}
// If an initializer was parsed but there is still an error in finding the next semicolon,
// we generally know there was an error already reported in the initializer...
// class Example { a = new Map([), ) }
// ~
if (initializer) {
// ...unless we've found the start of a block after a property declaration, in which
// case we can know that regardless of the initializer we should complain on the block.
// class Example { a = 0 {} }
// ~
if (token() === 18 /* OpenBraceToken */) {
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));
}
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));
return;
}
parseErrorForMissingSemicolonAfter(name);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"name": "typescript",
"author": "Microsoft Corp.",
"homepage": "https://www.typescriptlang.org/",
"version": "4.6.2",
"version": "4.6.3",
"license": "Apache-2.0",
"description": "TypeScript is a language for application scale JavaScript development",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/corePublic.ts
Expand Up @@ -5,7 +5,7 @@ namespace ts {
// The following is baselined as a literal template type without intervention
/** The version of the TypeScript compiler release */
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
export const version = "4.6.2" as string;
export const version = "4.6.3" as string;

/**
* Type of objects whose values are all of the same type.
Expand Down

0 comments on commit 2bed482

Please sign in to comment.