File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -2043,11 +2043,17 @@ namespace ts {
2043
2043
tokenValue += scanIdentifierParts ( ) ;
2044
2044
}
2045
2045
return token = SyntaxKind . PrivateIdentifier ;
2046
- } else {
2046
+ }
2047
+ else {
2047
2048
tokenValue = "#" ;
2048
2049
if ( /*isInsidePipelineHack*/ false ) {
2049
2050
error ( Diagnostics . Invalid_character /* Hack placeholder token outside pipeline. */ ) ;
2050
2051
}
2052
+ else {
2053
+ if ( ( pos >= 2 ) && ( text . charCodeAt ( pos - 2 ) === CharacterCodes . dot ) ) {
2054
+ return token = SyntaxKind . PrivateIdentifier ;
2055
+ }
2056
+ }
2051
2057
return token = SyntaxKind . Identifier ;
2052
2058
}
2053
2059
default :
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ namespace Utils {
118
118
for ( const childName in node ) {
119
119
if ( childName === "parent" || childName === "nextContainer" || childName === "modifiers" || childName === "externalModuleIndicator" ||
120
120
// for now ignore jsdoc comments
121
- childName === "jsDocComment" || childName === "checkJsDirective" || childName === "commonJsModuleIndicator" ) {
121
+ childName === "jsDocComment" || childName === "checkJsDirective" || childName === "commonJsModuleIndicator" || childName === "dummyDeclaration" ) {
122
122
continue ;
123
123
}
124
124
const child = ( < any > node ) [ childName ] ;
You can’t perform that action at this time.
0 commit comments