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 b2d6aad commit 647ada6Copy full SHA for 647ada6
src/compiler/parser.ts
@@ -1326,7 +1326,7 @@ namespace ts {
1326
const isPrivateName = !!(scanner.getTokenFlags() & TokenFlags.PrivateName);
1327
const privateNameIsAllowed = !!(parsingContext & (1 << ParsingContext.ClassMembers));
1328
if (isPrivateName && !privateNameIsAllowed) {
1329
- diagnosticMessage = Diagnostics.File_0_does_not_exist // TODO, real diagnostic
+ diagnosticMessage = Diagnostics.Private_names_are_not_allowed_outside_of_class_bodies;
1330
}
1331
else if (isIdentifier && (!isPrivateName || privateNameIsAllowed)) {
1332
const node = <Identifier>createNode(SyntaxKind.Identifier);
0 commit comments