We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc4452e commit 0c3ed7eCopy full SHA for 0c3ed7e
src/compiler/scanner.ts
@@ -2043,12 +2043,13 @@ namespace ts {
2043
tokenValue += scanIdentifierParts();
2044
}
2045
return token = SyntaxKind.PrivateIdentifier;
2046
- }
2047
- tokenValue = "#";
2048
- if (/*isPipelineHack*/ true) {
+ } else {
+ tokenValue = "#";
+ if (/*isInsidePipelineHack*/ false) {
2049
+ error(Diagnostics.Invalid_character /* Hack placeholder token outside pipeline. */);
2050
+ }
2051
return token = SyntaxKind.Identifier;
2052
- error(Diagnostics.Invalid_character);
2053
default:
2054
const identifierKind = scanIdentifier(ch, languageVersion);
2055
if (identifierKind) {
0 commit comments