File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -4683,10 +4683,13 @@ namespace ts {
4683
4683
context.flags ^= NodeBuilderFlags.InInitialEntityName;
4684
4684
}
4685
4685
let firstChar = symbolName.charCodeAt(0);
4686
+
4686
4687
if (isSingleOrDoubleQuote(firstChar) && some(symbol.declarations, hasNonGlobalAugmentationExternalModuleSymbol)) {
4687
4688
return createLiteral(getSpecifierForModuleSymbol(symbol, context));
4688
4689
}
4689
- const canUsePropertyAccess = isIdentifierStart(firstChar, languageVersion);
4690
+ const canUsePropertyAccess = firstChar === CharacterCodes.hash ?
4691
+ symbolName.length > 1 && isIdentifierStart(symbolName.charCodeAt(1), languageVersion) :
4692
+ isIdentifierStart(firstChar, languageVersion);
4690
4693
if (index === 0 || canUsePropertyAccess) {
4691
4694
const identifier = setEmitFlags(createIdentifier(symbolName, typeParameterNodes), EmitFlags.NoAsciiEscaping);
4692
4695
identifier.symbol = symbol;
You can’t perform that action at this time.
0 commit comments