renamed "hasPrivateKeyword" to "has_private_keyword"

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

View File

@@ -42,7 +42,7 @@ public class DeclarationFlags {
"is_static",
"hasReadonlyKeyword",
"has_public_keyword",
"hasPrivateKeyword",
"has_private_keyword",
"hasProtectedKeyword",
"isOptionalMember",
"hasDefiniteAssignmentAssertion",

View File

@@ -175,3 +175,8 @@ deprecated predicate isAbstractClass(ClassDeclStmt id) { is_abstract_class(id) }
* Use `MemberDeclaration#hasPublicKeyword() instead.
*/
deprecated predicate hasPublicKeyword(Property prop) { has_public_keyword(prop) }
/**
* Alias for the predicate `has_private_keyword` defined in the .dbscheme.
* Use `MemberDeclaration#isPrivate() instead.
*/
deprecated predicate hasPrivateKeyword(Property prop) { has_private_keyword(prop) }

View File

@@ -497,7 +497,7 @@ class MemberDeclaration extends @property, Documentable {
/**
* Holds if this is a TypeScript member annotated with the `private` keyword.
*/
predicate isPrivate() { hasPrivateKeyword(this) }
predicate isPrivate() { has_private_keyword(this) }
/**
* Holds if this is a TypeScript member annotated with the `protected` keyword.

View File

@@ -521,7 +521,7 @@ is_const_enum (int id: @enumdeclaration ref);
is_abstract_class (int id: @classdeclstmt ref);
has_public_keyword (int id: @property ref);
hasPrivateKeyword (int id: @property ref);
has_private_keyword (int id: @property ref);
hasProtectedKeyword (int id: @property ref);
hasReadonlyKeyword (int id: @property ref);
hasTypeKeyword (int id: @import_or_export_declaration ref);

View File

@@ -7963,7 +7963,7 @@
<dependencies/>
</relation>
<relation>
<name>hasPrivateKeyword</name>
<name>has_private_keyword</name>
<cardinality>11391</cardinality>
<columnsizes>
<e>

View File

@@ -44,3 +44,5 @@ is_abstract_class.rel: reorder isAbstractClass.rel(int id) id
isAbstractClass.rel: delete
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