Skip to content

Commit cbba720

Browse files
committed
Pipeline - Fix the tests more.
1 parent 9d68418 commit cbba720

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/compiler/scanner.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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:

src/harness/harnessUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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];

0 commit comments

Comments
 (0)