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 @@ -4882,10 +4882,13 @@ namespace ts {
4882
4882
context.flags ^= NodeBuilderFlags.InInitialEntityName;
4883
4883
}
4884
4884
let firstChar = symbolName.charCodeAt(0);
4885
+
4885
4886
if (isSingleOrDoubleQuote(firstChar) && some(symbol.declarations, hasNonGlobalAugmentationExternalModuleSymbol)) {
4886
4887
return createLiteral(getSpecifierForModuleSymbol(symbol, context));
4887
4888
}
4888
- const canUsePropertyAccess = isIdentifierStart(firstChar, languageVersion);
4889
+ const canUsePropertyAccess = firstChar === CharacterCodes.hash ?
4890
+ symbolName.length > 1 && isIdentifierStart(symbolName.charCodeAt(1), languageVersion) :
4891
+ isIdentifierStart(firstChar, languageVersion);
4889
4892
if (index === 0 || canUsePropertyAccess) {
4890
4893
const identifier = setEmitFlags(createIdentifier(symbolName, typeParameterNodes), EmitFlags.NoAsciiEscaping);
4891
4894
identifier.symbol = symbol;
You can’t perform that action at this time.
0 commit comments