@@ -4796,7 +4796,9 @@ namespace ts {
47964796
47974797 // Type parameters are always visible
47984798 case SyntaxKind.TypeParameter:
4799+
47994800 // Source file and namespace export are always visible
4801+ // falls through
48004802 case SyntaxKind.SourceFile:
48014803 case SyntaxKind.NamespaceExportDeclaration:
48024804 return true;
@@ -24545,7 +24547,7 @@ namespace ts {
2454524547 if ((<CallExpression>node).expression.kind === SyntaxKind.ImportKeyword) {
2454624548 return checkImportCallExpression(<ImportCall>node);
2454724549 }
24548- /* falls through */
24550+ // falls through
2454924551 case SyntaxKind.NewExpression:
2455024552 return checkCallExpression(<CallExpression>node, checkMode);
2455124553 case SyntaxKind.TaggedTemplateExpression:
@@ -25673,7 +25675,9 @@ namespace ts {
2567325675 switch (d.kind) {
2567425676 case SyntaxKind.InterfaceDeclaration:
2567525677 case SyntaxKind.TypeAliasDeclaration:
25676- // A jsdoc typedef and callback are, by definition, type aliases
25678+
25679+ // A jsdoc typedef and callback are, by definition, type aliases.
25680+ // falls through
2567725681 case SyntaxKind.JSDocTypedefTag:
2567825682 case SyntaxKind.JSDocCallbackTag:
2567925683 return DeclarationSpaces.ExportType;
@@ -25692,8 +25696,9 @@ namespace ts {
2569225696 return DeclarationSpaces.ExportValue;
2569325697 }
2569425698 d = (d as ExportAssignment).expression;
25695- /* falls through */
25696- // The below options all declare an Alias, which is allowed to merge with other values within the importing module
25699+
25700+ // The below options all declare an Alias, which is allowed to merge with other values within the importing module.
25701+ // falls through
2569725702 case SyntaxKind.ImportEqualsDeclaration:
2569825703 case SyntaxKind.NamespaceImport:
2569925704 case SyntaxKind.ImportClause:
@@ -29634,9 +29639,10 @@ namespace ts {
2963429639 if (className) {
2963529640 copySymbol(location.symbol, meaning);
2963629641 }
29637- // falls through
29642+
2963829643 // this fall-through is necessary because we would like to handle
29639- // type parameter inside class expression similar to how we handle it in classDeclaration and interface Declaration
29644+ // type parameter inside class expression similar to how we handle it in classDeclaration and interface Declaration.
29645+ // falls through
2964029646 case SyntaxKind.ClassDeclaration:
2964129647 case SyntaxKind.InterfaceDeclaration:
2964229648 // If we didn't come from static member of class or interface,
@@ -31786,7 +31792,7 @@ namespace ts {
3178631792 switch (prop.kind) {
3178731793 case SyntaxKind.ShorthandPropertyAssignment:
3178831794 checkGrammarForInvalidExclamationToken(prop.exclamationToken, Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);
31789- /* tslint:disable:no-switch-case-fall-through */
31795+ // falls through
3179031796 case SyntaxKind.PropertyAssignment:
3179131797 // Grammar checking for computedPropertyName and shorthandPropertyAssignment
3179231798 checkGrammarForInvalidQuestionMark(prop.questionToken, Diagnostics.An_object_member_cannot_be_declared_optional);
0 commit comments