mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Refactored visibility text on modifier grammar check
This commit is contained in:
1 parent
4c93eb2e98
commit
5ce0202bc9
1 file changed
+4
-8
@@ -16269,16 +16269,12 @@ namespace ts {
|
||||
case SyntaxKind.PublicKeyword:
|
||||
case SyntaxKind.ProtectedKeyword:
|
||||
case SyntaxKind.PrivateKeyword:
|
||||
let text: string;
|
||||
if (modifier.kind === SyntaxKind.PublicKeyword) {
|
||||
text = "public";
|
||||
}
|
||||
else if (modifier.kind === SyntaxKind.ProtectedKeyword) {
|
||||
text = "protected";
|
||||
let text = visibilityToString(modifierToFlag(modifier.kind));
|
||||
|
||||
if (modifier.kind === SyntaxKind.ProtectedKeyword) {
|
||||
lastProtected = modifier;
|
||||
}
|
||||
else {
|
||||
text = "private";
|
||||
else if (modifier.kind === SyntaxKind.PrivateKeyword) {
|
||||
lastPrivate = modifier;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user