We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f62dcb commit 22bfc60Copy full SHA for 22bfc60
src/compiler/checker.ts
@@ -4364,7 +4364,10 @@ namespace ts {
4364
context.flags ^= NodeBuilderFlags.InInitialEntityName;
4365
}
4366
let firstChar = symbolName.charCodeAt(0);
4367
- const canUsePropertyAccess = isIdentifierStart(firstChar, languageVersion);
+ const canUsePropertyAccess = firstChar === CharacterCodes.hash ?
4368
+ symbolName.length > 1 && isIdentifierStart(symbolName.charCodeAt(1), languageVersion) :
4369
+ isIdentifierStart(firstChar, languageVersion);
4370
+
4371
if (index === 0 || canUsePropertyAccess) {
4372
const identifier = setEmitFlags(createIdentifier(symbolName, typeParameterNodes), EmitFlags.NoAsciiEscaping);
4373
identifier.symbol = symbol;
0 commit comments