Skip to content

Commit 1ad411e

Browse files
committed
Various fixes
1 parent 12403d9 commit 1ad411e

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ namespace ts {
224224
getSuggestionForNonexistentSymbol: (location, name, meaning) => unescapeLeadingUnderscores(getSuggestionForNonexistentSymbol(location, escapeLeadingUnderscores(name), meaning)),
225225
getBaseConstraintOfType,
226226
resolveName(name, location, meaning) {
227-
return resolveName(location, name as __String, meaning, /*nameNotFoundMessage*/ undefined, /*nameArg*/ undefined);
227+
return resolveName(location, escapeLeadingUnderscores(name), meaning, /*nameNotFoundMessage*/ undefined, /*nameArg*/ undefined);
228228
},
229229
getJsxNamespace: () => unescapeLeadingUnderscores(getJsxNamespace()),
230230
};

src/compiler/utilities.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ namespace ts {
693693
// At this point, node is either a qualified name or an identifier
694694
Debug.assert(node.kind === SyntaxKind.Identifier || node.kind === SyntaxKind.QualifiedName || node.kind === SyntaxKind.PropertyAccessExpression,
695695
"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");
696-
// falls through
696+
// falls through
697697
case SyntaxKind.QualifiedName:
698698
case SyntaxKind.PropertyAccessExpression:
699699
case SyntaxKind.ThisKeyword:
@@ -968,7 +968,7 @@ namespace ts {
968968
if (!includeArrowFunctions) {
969969
continue;
970970
}
971-
// falls through
971+
// falls through
972972
case SyntaxKind.FunctionDeclaration:
973973
case SyntaxKind.FunctionExpression:
974974
case SyntaxKind.ModuleDeclaration:
@@ -1027,7 +1027,7 @@ namespace ts {
10271027
if (!stopOnFunctions) {
10281028
continue;
10291029
}
1030-
// falls through
1030+
// falls through
10311031
case SyntaxKind.PropertyDeclaration:
10321032
case SyntaxKind.PropertySignature:
10331033
case SyntaxKind.MethodDeclaration:
@@ -1211,7 +1211,7 @@ namespace ts {
12111211
if (node.parent.kind === SyntaxKind.TypeQuery || isJSXTagName(node)) {
12121212
return true;
12131213
}
1214-
// falls through
1214+
// falls through
12151215
case SyntaxKind.NumericLiteral:
12161216
case SyntaxKind.StringLiteral:
12171217
case SyntaxKind.ThisKeyword:
@@ -1907,7 +1907,7 @@ namespace ts {
19071907
if (node.asteriskToken) {
19081908
flags |= FunctionFlags.Generator;
19091909
}
1910-
// falls through
1910+
// falls through
19111911
case SyntaxKind.ArrowFunction:
19121912
if (hasModifier(node, ModifierFlags.Async)) {
19131913
flags |= FunctionFlags.Async;

0 commit comments

Comments
 (0)