Skip to content

Commit 370b561

Browse files
committed
Merge branch 'master' into spelling-correction
2 parents 9eaf40b + cb723cf commit 370b561

File tree

183 files changed

+5650
-2312
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+5650
-2312
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"@types/gulp-help": "latest",
4040
"@types/gulp-newer": "latest",
4141
"@types/gulp-sourcemaps": "latest",
42-
"@types/gulp-typescript": "latest",
4342
"@types/merge2": "latest",
4443
"@types/minimatch": "latest",
4544
"@types/minimist": "latest",

src/compiler/binder.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ namespace ts {
221221
// other kinds of value declarations take precedence over modules
222222
symbol.valueDeclaration = node;
223223
}
224-
}
224+
}
225225
}
226226

227227
// Should not be called on a declaration with a computed property name,
@@ -389,9 +389,9 @@ namespace ts {
389389
// 1. multiple export default of class declaration or function declaration by checking NodeFlags.Default
390390
// 2. multiple export default of export assignment. This one doesn't have NodeFlags.Default on (as export default doesn't considered as modifiers)
391391
if (symbol.declarations && symbol.declarations.length &&
392-
(isDefaultExport || (node.kind === SyntaxKind.ExportAssignment && !(<ExportAssignment>node).isExportEquals))) {
393-
message = Diagnostics.A_module_cannot_have_multiple_default_exports;
394-
}
392+
(isDefaultExport || (node.kind === SyntaxKind.ExportAssignment && !(<ExportAssignment>node).isExportEquals))) {
393+
message = Diagnostics.A_module_cannot_have_multiple_default_exports;
394+
}
395395
}
396396
}
397397

@@ -1414,7 +1414,7 @@ namespace ts {
14141414
if (isObjectLiteralOrClassExpressionMethod(node)) {
14151415
return ContainerFlags.IsContainer | ContainerFlags.IsControlFlowContainer | ContainerFlags.HasLocals | ContainerFlags.IsFunctionLike | ContainerFlags.IsObjectLiteralOrClassExpressionMethod;
14161416
}
1417-
// falls through
1417+
// falls through
14181418
case SyntaxKind.Constructor:
14191419
case SyntaxKind.FunctionDeclaration:
14201420
case SyntaxKind.MethodSignature:
@@ -1716,7 +1716,7 @@ namespace ts {
17161716
declareModuleMember(node, symbolFlags, symbolExcludes);
17171717
break;
17181718
}
1719-
// falls through
1719+
// falls through
17201720
default:
17211721
if (!blockScopeContainer.locals) {
17221722
blockScopeContainer.locals = createMap<Symbol>();
@@ -2010,7 +2010,7 @@ namespace ts {
20102010
bindBlockScopedDeclaration(<Declaration>parentNode, SymbolFlags.TypeAlias, SymbolFlags.TypeAliasExcludes);
20112011
break;
20122012
}
2013-
// falls through
2013+
// falls through
20142014
case SyntaxKind.ThisKeyword:
20152015
if (currentFlow && (isExpression(node) || parent.kind === SyntaxKind.ShorthandPropertyAssignment)) {
20162016
node.flowNode = currentFlow;
@@ -2186,7 +2186,7 @@ namespace ts {
21862186
if (!isFunctionLike(node.parent)) {
21872187
return;
21882188
}
2189-
// falls through
2189+
// falls through
21902190
case SyntaxKind.ModuleBlock:
21912191
return updateStrictModeStatementList((<Block | ModuleBlock>node).statements);
21922192
}
@@ -2211,7 +2211,7 @@ namespace ts {
22112211
}
22122212

22132213
function bindSourceFileAsExternalModule() {
2214-
bindAnonymousDeclaration(file, SymbolFlags.ValueModule, `"${removeFileExtension(file.fileName) }"`);
2214+
bindAnonymousDeclaration(file, SymbolFlags.ValueModule, `"${removeFileExtension(file.fileName)}"`);
22152215
}
22162216

22172217
function bindExportAssignment(node: ExportAssignment | BinaryExpression) {
@@ -2504,7 +2504,7 @@ namespace ts {
25042504
}
25052505

25062506
function bindParameter(node: ParameterDeclaration) {
2507-
if (inStrictMode) {
2507+
if (inStrictMode && !isInAmbientContext(node)) {
25082508
// It is a SyntaxError if the identifier eval or arguments appears within a FormalParameterList of a
25092509
// strict mode FunctionLikeDeclaration or FunctionExpression(13.1)
25102510
checkStrictModeEvalOrArguments(node, node.name);

0 commit comments

Comments
 (0)