File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2043,11 +2043,17 @@ namespace ts {
20432043 tokenValue += scanIdentifierParts ( ) ;
20442044 }
20452045 return token = SyntaxKind . PrivateIdentifier ;
2046- } else {
2046+ }
2047+ else {
20472048 tokenValue = "#" ;
20482049 if ( /*isInsidePipelineHack*/ false ) {
20492050 error ( Diagnostics . Invalid_character /* Hack placeholder token outside pipeline. */ ) ;
20502051 }
2052+ else {
2053+ if ( ( pos >= 2 ) && ( text . charCodeAt ( pos - 2 ) === CharacterCodes . dot ) ) {
2054+ return token = SyntaxKind . PrivateIdentifier ;
2055+ }
2056+ }
20512057 return token = SyntaxKind . Identifier ;
20522058 }
20532059 default :
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ namespace Utils {
118118 for ( const childName in node ) {
119119 if ( childName === "parent" || childName === "nextContainer" || childName === "modifiers" || childName === "externalModuleIndicator" ||
120120 // for now ignore jsdoc comments
121- childName === "jsDocComment" || childName === "checkJsDirective" || childName === "commonJsModuleIndicator" ) {
121+ childName === "jsDocComment" || childName === "checkJsDirective" || childName === "commonJsModuleIndicator" || childName === "dummyDeclaration" ) {
122122 continue ;
123123 }
124124 const child = ( < any > node ) [ childName ] ;
You can’t perform that action at this time.
0 commit comments