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 ce7016e commit 3c1af1fCopy full SHA for 3c1af1f
src/compiler/checker.ts
@@ -4528,7 +4528,10 @@ namespace ts {
4528
context.flags ^= NodeBuilderFlags.InInitialEntityName;
4529
}
4530
let firstChar = symbolName.charCodeAt(0);
4531
- const canUsePropertyAccess = isIdentifierStart(firstChar, languageVersion);
+ const canUsePropertyAccess = firstChar === CharacterCodes.hash ?
4532
+ symbolName.length > 1 && isIdentifierStart(symbolName.charCodeAt(1), languageVersion) :
4533
+ isIdentifierStart(firstChar, languageVersion);
4534
+
4535
if (index === 0 || canUsePropertyAccess) {
4536
const identifier = setEmitFlags(createIdentifier(symbolName, typeParameterNodes), EmitFlags.NoAsciiEscaping);
4537
identifier.symbol = symbol;
0 commit comments