@@ -902,6 +902,7 @@ namespace ts {
902902 case SyntaxKind.SourceFile:
903903 if (!isExternalOrCommonJsModule(<SourceFile>location)) break;
904904 isInExternalModule = true;
905+ // falls through
905906 case SyntaxKind.ModuleDeclaration:
906907 const moduleExports = getSymbolOfNode(location).exports;
907908 if (location.kind === SyntaxKind.SourceFile || isAmbientModule(location)) {
@@ -1938,6 +1939,7 @@ namespace ts {
19381939 if (!isExternalOrCommonJsModule(<SourceFile>location)) {
19391940 break;
19401941 }
1942+ // falls through
19411943 case SyntaxKind.ModuleDeclaration:
19421944 if (result = callback(getSymbolOfNode(location).exports)) {
19431945 return result;
@@ -3658,7 +3660,7 @@ namespace ts {
36583660 // If the binding pattern is empty, this variable declaration is not visible
36593661 return false;
36603662 }
3661- // Otherwise fall through
3663+ // falls through
36623664 case SyntaxKind.ModuleDeclaration:
36633665 case SyntaxKind.ClassDeclaration:
36643666 case SyntaxKind.InterfaceDeclaration:
@@ -3689,7 +3691,8 @@ namespace ts {
36893691 // Private/protected properties/methods are not visible
36903692 return false;
36913693 }
3692- // Public properties/methods are visible if its parents are visible, so const it fall into next case statement
3694+ // Public properties/methods are visible if its parents are visible, so:
3695+ // falls through
36933696
36943697 case SyntaxKind.Constructor:
36953698 case SyntaxKind.ConstructSignature:
@@ -21050,7 +21053,7 @@ namespace ts {
2105021053 }
2105121054 break;
2105221055 }
21053- // fallthrough
21056+ // falls through
2105421057 case SyntaxKind.ClassDeclaration:
2105521058 case SyntaxKind.EnumDeclaration:
2105621059 case SyntaxKind.FunctionDeclaration:
@@ -21685,6 +21688,7 @@ namespace ts {
2168521688 if (!isExternalOrCommonJsModule(<SourceFile>location)) {
2168621689 break;
2168721690 }
21691+ // falls through
2168821692 case SyntaxKind.ModuleDeclaration:
2168921693 copySymbols(getSymbolOfNode(location).exports, meaning & SymbolFlags.ModuleMember);
2169021694 break;
@@ -21696,7 +21700,8 @@ namespace ts {
2169621700 if (className) {
2169721701 copySymbol(location.symbol, meaning);
2169821702 }
21699- // fall through; this fall-through is necessary because we would like to handle
21703+ // falls through
21704+ // this fall-through is necessary because we would like to handle
2170021705 // type parameter inside class expression similar to how we handle it in classDeclaration and interface Declaration
2170121706 case SyntaxKind.ClassDeclaration:
2170221707 case SyntaxKind.InterfaceDeclaration:
@@ -21985,7 +21990,7 @@ namespace ts {
2198521990 return sig.thisParameter;
2198621991 }
2198721992 }
21988- // fallthrough
21993+ // falls through
2198921994
2199021995 case SyntaxKind.SuperKeyword:
2199121996 const type = isPartOfExpression(node) ? getTypeOfExpression(<Expression>node) : getTypeFromTypeNode(<TypeNode>node);
@@ -22013,7 +22018,7 @@ namespace ts {
2201322018 if (isInJavaScriptFile(node) && isRequireCall(node.parent, /*checkArgumentIsStringLiteral*/ false)) {
2201422019 return resolveExternalModuleName(node, <LiteralExpression>node);
2201522020 }
22016- // Fall through
22021+ // falls through
2201722022
2201822023 case SyntaxKind.NumericLiteral:
2201922024 // index access
0 commit comments