Skip to content

Commit c72e157

Browse files
committed
Merge pull request #741 from sparecycles/fix/spelling-collistion
spelling: Collistion -> Collision
2 parents dae98be + 22dc357 commit c72e157

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/compiler/checker.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5317,7 +5317,7 @@ module ts {
53175317
if (fullTypeCheck) {
53185318
checkCollisionWithCapturedSuperVariable(node, node.name);
53195319
checkCollisionWithCapturedThisVariable(node, node.name);
5320-
checkCollistionWithRequireExportsInGeneratedCode(node, node.name);
5320+
checkCollisionWithRequireExportsInGeneratedCode(node, node.name);
53215321
checkCollisionWithArgumentsInGeneratedCode(node);
53225322
if (compilerOptions.noImplicitAny && !node.type) {
53235323
switch (node.kind) {
@@ -6063,7 +6063,7 @@ module ts {
60636063
}
60646064
}
60656065

6066-
function checkCollistionWithRequireExportsInGeneratedCode(node: Node, name: Identifier) {
6066+
function checkCollisionWithRequireExportsInGeneratedCode(node: Node, name: Identifier) {
60676067
if (!needCollisionCheckForIdentifier(node, name, "require") && !needCollisionCheckForIdentifier(node, name, "exports")) {
60686068
return;
60696069
}
@@ -6108,7 +6108,7 @@ module ts {
61086108

61096109
checkCollisionWithCapturedSuperVariable(node, node.name);
61106110
checkCollisionWithCapturedThisVariable(node, node.name);
6111-
checkCollistionWithRequireExportsInGeneratedCode(node, node.name);
6111+
checkCollisionWithRequireExportsInGeneratedCode(node, node.name);
61126112
if (!useTypeFromValueDeclaration) {
61136113
// TypeScript 1.0 spec (April 2014): 5.1
61146114
// Multiple declarations for the same variable name in the same declaration space are permitted,
@@ -6367,7 +6367,7 @@ module ts {
63676367
checkTypeNameIsReserved(node.name, Diagnostics.Class_name_cannot_be_0);
63686368
checkTypeParameters(node.typeParameters);
63696369
checkCollisionWithCapturedThisVariable(node, node.name);
6370-
checkCollistionWithRequireExportsInGeneratedCode(node, node.name);
6370+
checkCollisionWithRequireExportsInGeneratedCode(node, node.name);
63716371
checkExportsOnMergedDeclarations(node);
63726372
var symbol = getSymbolOfNode(node);
63736373
var type = <InterfaceType>getDeclaredTypeOfSymbol(symbol);
@@ -6618,7 +6618,7 @@ module ts {
66186618

66196619
checkTypeNameIsReserved(node.name, Diagnostics.Enum_name_cannot_be_0);
66206620
checkCollisionWithCapturedThisVariable(node, node.name);
6621-
checkCollistionWithRequireExportsInGeneratedCode(node, node.name);
6621+
checkCollisionWithRequireExportsInGeneratedCode(node, node.name);
66226622
checkExportsOnMergedDeclarations(node);
66236623

66246624
computeEnumMemberValues(node);
@@ -6671,7 +6671,7 @@ module ts {
66716671
function checkModuleDeclaration(node: ModuleDeclaration) {
66726672
if (fullTypeCheck) {
66736673
checkCollisionWithCapturedThisVariable(node, node.name);
6674-
checkCollistionWithRequireExportsInGeneratedCode(node, node.name);
6674+
checkCollisionWithRequireExportsInGeneratedCode(node, node.name);
66756675
checkExportsOnMergedDeclarations(node);
66766676
var symbol = getSymbolOfNode(node);
66776677
if (symbol.flags & SymbolFlags.ValueModule && symbol.declarations.length > 1 && !isInAmbientContext(node)) {
@@ -6706,7 +6706,7 @@ module ts {
67066706

67076707
function checkImportDeclaration(node: ImportDeclaration) {
67086708
checkCollisionWithCapturedThisVariable(node, node.name);
6709-
checkCollistionWithRequireExportsInGeneratedCode(node, node.name);
6709+
checkCollisionWithRequireExportsInGeneratedCode(node, node.name);
67106710
var symbol = getSymbolOfNode(node);
67116711
var target: Symbol;
67126712

0 commit comments

Comments
 (0)