renamed "hasProtectedKeyword" to "has_protected_keyword"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:51:58 +02:00
parent 719c0d2030
commit 4b74c1d4b3
6 changed files with 11 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ public class DeclarationFlags {
"hasReadonlyKeyword",
"has_public_keyword",
"has_private_keyword",
"hasProtectedKeyword",
"has_protected_keyword",
"isOptionalMember",
"hasDefiniteAssignmentAssertion",
"has_declare_keyword");

View File

@@ -180,3 +180,8 @@ deprecated predicate hasPublicKeyword(Property prop) { has_public_keyword(prop)
* Use `MemberDeclaration#isPrivate() instead.
*/
deprecated predicate hasPrivateKeyword(Property prop) { has_private_keyword(prop) }
/**
* Alias for the predicate `has_protected_keyword` defined in the .dbscheme.
* Use `MemberDeclaration#isProtected() instead.
*/
deprecated predicate hasProtectedKeyword(Property prop) { has_protected_keyword(prop) }

View File

@@ -502,7 +502,7 @@ class MemberDeclaration extends @property, Documentable {
/**
* Holds if this is a TypeScript member annotated with the `protected` keyword.
*/
predicate isProtected() { hasProtectedKeyword(this) }
predicate isProtected() { has_protected_keyword(this) }
/**
* Gets the expression specifying the name of this member,

View File

@@ -522,7 +522,7 @@ is_abstract_class (int id: @classdeclstmt ref);
has_public_keyword (int id: @property ref);
has_private_keyword (int id: @property ref);
hasProtectedKeyword (int id: @property ref);
has_protected_keyword (int id: @property ref);
hasReadonlyKeyword (int id: @property ref);
hasTypeKeyword (int id: @import_or_export_declaration ref);
isOptionalMember (int id: @property ref);

View File

@@ -7974,7 +7974,7 @@
<dependencies/>
</relation>
<relation>
<name>hasProtectedKeyword</name>
<name>has_protected_keyword</name>
<cardinality>1048</cardinality>
<columnsizes>
<e>

View File

@@ -46,3 +46,5 @@ has_public_keyword.rel: reorder hasPublicKeyword.rel(int prop) prop
hasPublicKeyword.rel: delete
has_private_keyword.rel: reorder hasPrivateKeyword.rel(int prop) prop
hasPrivateKeyword.rel: delete
has_protected_keyword.rel: reorder hasProtectedKeyword.rel(int prop) prop
hasProtectedKeyword.rel: delete