File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1725,10 +1725,7 @@ namespace ts {
1725
1725
return token = SyntaxKind . Unknown ;
1726
1726
case CharacterCodes . hash :
1727
1727
pos ++ ;
1728
- if (
1729
- languageVersion === ScriptTarget . ESNext
1730
- && isIdentifierStart ( ch = text . charCodeAt ( pos ) , languageVersion )
1731
- ) {
1728
+ if ( isIdentifierStart ( ch = text . charCodeAt ( pos ) , languageVersion ) ) {
1732
1729
tokenFlags |= TokenFlags . PrivateName ;
1733
1730
pos ++ ;
1734
1731
while ( pos < end && isIdentifierPart ( ch = text . charCodeAt ( pos ) , languageVersion ) ) pos ++ ;
@@ -1739,7 +1736,11 @@ namespace ts {
1739
1736
return token = SyntaxKind . Identifier ;
1740
1737
}
1741
1738
error ( Diagnostics . Invalid_character ) ;
1739
+ < < < << << HEAD
1742
1740
// no `pos++` because already advanced at beginning of this `case` statement
1741
+ = === ===
1742
+ pos ++ ;
1743
+ >>> >>> > can parse private names ( #1 )
1743
1744
return token = SyntaxKind . Unknown ;
1744
1745
default :
1745
1746
if ( isIdentifierStart ( ch , languageVersion ) ) {
You can’t perform that action at this time.
0 commit comments