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 @@ -4856,10 +4856,13 @@ namespace ts {
4856
4856
context.flags ^= NodeBuilderFlags.InInitialEntityName;
4857
4857
}
4858
4858
let firstChar = symbolName.charCodeAt(0);
4859
+
4859
4860
if (isSingleOrDoubleQuote(firstChar) && some(symbol.declarations, hasNonGlobalAugmentationExternalModuleSymbol)) {
4860
4861
return createLiteral(getSpecifierForModuleSymbol(symbol, context));
4861
4862
}
4862
- const canUsePropertyAccess = isIdentifierStart(firstChar, languageVersion);
4863
+ const canUsePropertyAccess = firstChar === CharacterCodes.hash ?
4864
+ symbolName.length > 1 && isIdentifierStart(symbolName.charCodeAt(1), languageVersion) :
4865
+ isIdentifierStart(firstChar, languageVersion);
4863
4866
if (index === 0 || canUsePropertyAccess) {
4864
4867
const identifier = setEmitFlags(createIdentifier(symbolName, typeParameterNodes), EmitFlags.NoAsciiEscaping);
4865
4868
identifier.symbol = symbol;
You can’t perform that action at this time.
0 commit comments