Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
deno
提交
49807ac4
D
deno
项目概览
张重言
/
deno
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
deno
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
49807ac4
编写于
9月 22, 2020
作者:
T
Trivikram Kamat
提交者:
GitHub
9月 23, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: bump TypeScript to 4.0.3 (#7637)
上级
ffd08a22
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
18 addition
and
10 deletion
+18
-10
cli/tsc/00_typescript.js
cli/tsc/00_typescript.js
+18
-10
未找到文件。
cli/tsc/00_typescript.js
浏览文件 @
49807ac4
...
@@ -288,7 +288,7 @@ var ts;
...
@@ -288,7 +288,7 @@ var ts;
// If changing the text in this section, be sure to test `configurePrerelease` too.
// If changing the text in this section, be sure to test `configurePrerelease` too.
ts.versionMajorMinor = "4.0";
ts.versionMajorMinor = "4.0";
/** The version of the TypeScript compiler release */
/** The version of the TypeScript compiler release */
ts.version = "4.0.
2
";
ts.version = "4.0.
3
";
/* @internal */
/* @internal */
var Comparison;
var Comparison;
(function (Comparison) {
(function (Comparison) {
...
@@ -6368,6 +6368,10 @@ var ts;
...
@@ -6368,6 +6368,10 @@ var ts;
return ts.matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath);
return ts.matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath);
}
}
function fileSystemEntryExists(path, entryKind) {
function fileSystemEntryExists(path, entryKind) {
// Since the error thrown by fs.statSync isn't used, we can avoid collecting a stack trace to improve
// the CPU time performance.
var originalStackTraceLimit = Error.stackTraceLimit;
Error.stackTraceLimit = 0;
try {
try {
var stat = _fs.statSync(path);
var stat = _fs.statSync(path);
switch (entryKind) {
switch (entryKind) {
...
@@ -6379,6 +6383,9 @@ var ts;
...
@@ -6379,6 +6383,9 @@ var ts;
catch (e) {
catch (e) {
return false;
return false;
}
}
finally {
Error.stackTraceLimit = originalStackTraceLimit;
}
}
}
function fileExists(path) {
function fileExists(path) {
return fileSystemEntryExists(path, 0 /* File */);
return fileSystemEntryExists(path, 0 /* File */);
...
@@ -70736,13 +70743,10 @@ var ts;
...
@@ -70736,13 +70743,10 @@ var ts;
function checkTupleType(node) {
function checkTupleType(node) {
var elementTypes = node.elements;
var elementTypes = node.elements;
var seenOptionalElement = false;
var seenOptionalElement = false;
var
seenNamedElement = false
;
var
hasNamedElement = ts.some(elementTypes, ts.isNamedTupleMember)
;
for (var i = 0; i < elementTypes.length; i++) {
for (var i = 0; i < elementTypes.length; i++) {
var e = elementTypes[i];
var e = elementTypes[i];
if (e.kind === 191 /* NamedTupleMember */) {
if (e.kind !== 191 /* NamedTupleMember */ && hasNamedElement) {
seenNamedElement = true;
}
else if (seenNamedElement) {
grammarErrorOnNode(e, ts.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);
grammarErrorOnNode(e, ts.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);
break;
break;
}
}
...
@@ -112965,7 +112969,10 @@ var ts;
...
@@ -112965,7 +112969,10 @@ var ts;
var newImport = sortedNewImports_1[_i];
var newImport = sortedNewImports_1[_i];
var insertionIndex = ts.OrganizeImports.getImportDeclarationInsertionIndex(existingImportStatements, newImport);
var insertionIndex = ts.OrganizeImports.getImportDeclarationInsertionIndex(existingImportStatements, newImport);
if (insertionIndex === 0) {
if (insertionIndex === 0) {
changes.insertNodeBefore(sourceFile, existingImportStatements[0], newImport, /*blankLineBetween*/ false);
// If the first import is top-of-file, insert after the leading comment which is likely the header.
var options = existingImportStatements[0] === sourceFile.statements[0] ?
{ leadingTriviaOption: ts.textChanges.LeadingTriviaOption.Exclude } : {};
changes.insertNodeBefore(sourceFile, existingImportStatements[0], newImport, /*blankLineBetween*/ false, options);
}
}
else {
else {
var prevImport = existingImportStatements[insertionIndex - 1];
var prevImport = existingImportStatements[insertionIndex - 1];
...
@@ -130093,9 +130100,10 @@ var ts;
...
@@ -130093,9 +130100,10 @@ var ts;
this.insertNodeAt(sourceFile, parameters.pos, newParam);
this.insertNodeAt(sourceFile, parameters.pos, newParam);
}
}
};
};
ChangeTracker.prototype.insertNodeBefore = function (sourceFile, before, newNode, blankLineBetween) {
ChangeTracker.prototype.insertNodeBefore = function (sourceFile, before, newNode, blankLineBetween
, options
) {
if (blankLineBetween === void 0) { blankLineBetween = false; }
if (blankLineBetween === void 0) { blankLineBetween = false; }
this.insertNodeAt(sourceFile, getAdjustedStartPosition(sourceFile, before, {}), newNode, this.getOptionsForInsertNodeBefore(before, newNode, blankLineBetween));
if (options === void 0) { options = {}; }
this.insertNodeAt(sourceFile, getAdjustedStartPosition(sourceFile, before, options), newNode, this.getOptionsForInsertNodeBefore(before, newNode, blankLineBetween));
};
};
ChangeTracker.prototype.insertModifierBefore = function (sourceFile, modifier, before) {
ChangeTracker.prototype.insertModifierBefore = function (sourceFile, modifier, before) {
var pos = before.getStart(sourceFile);
var pos = before.getStart(sourceFile);
...
@@ -133963,7 +133971,7 @@ var ts;
...
@@ -133963,7 +133971,7 @@ var ts;
else if (existingSpecifiers === null || existingSpecifiers === void 0 ? void 0 : existingSpecifiers.length) {
else if (existingSpecifiers === null || existingSpecifiers === void 0 ? void 0 : existingSpecifiers.length) {
for (var _b = 0, newSpecifiers_2 = newSpecifiers; _b < newSpecifiers_2.length; _b++) {
for (var _b = 0, newSpecifiers_2 = newSpecifiers; _b < newSpecifiers_2.length; _b++) {
var spec = newSpecifiers_2[_b];
var spec = newSpecifiers_2[_b];
changes.insertNode
AtEndOfList(sourceFile, existingSpecifiers, spec
);
changes.insertNode
InListAfter(sourceFile, ts.last(existingSpecifiers), spec, existingSpecifiers
);
}
}
}
}
else {
else {
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录