renamed "hasPublicKeyword" to "has_public_keyword"

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

View File

@@ -41,7 +41,7 @@ public class DeclarationFlags {
"is_abstract_member",
"is_static",
"hasReadonlyKeyword",
"hasPublicKeyword",
"has_public_keyword",
"hasPrivateKeyword",
"hasProtectedKeyword",
"isOptionalMember",

View File

@@ -170,3 +170,8 @@ deprecated predicate isConstEnum(EnumDeclaration id) { is_const_enum(id) }
* Use `ClassDefinition#isAbstract()` instead.
*/
deprecated predicate isAbstractClass(ClassDeclStmt id) { is_abstract_class(id) }
/**
* Alias for the predicate `has_public_keyword` defined in the .dbscheme.
* Use `MemberDeclaration#hasPublicKeyword() instead.
*/
deprecated predicate hasPublicKeyword(Property prop) { has_public_keyword(prop) }

View File

@@ -492,7 +492,7 @@ class MemberDeclaration extends @property, Documentable {
/**
* Holds if this is a TypeScript member explicitly annotated with the `public` keyword.
*/
predicate hasPublicKeyword() { hasPublicKeyword(this) }
predicate hasPublicKeyword() { has_public_keyword(this) }
/**
* Holds if this is a TypeScript member annotated with the `private` keyword.

View File

@@ -520,7 +520,7 @@ is_abstract_member (int id: @property ref);
is_const_enum (int id: @enumdeclaration ref);
is_abstract_class (int id: @classdeclstmt ref);
hasPublicKeyword (int id: @property ref);
has_public_keyword (int id: @property ref);
hasPrivateKeyword (int id: @property ref);
hasProtectedKeyword (int id: @property ref);
hasReadonlyKeyword (int id: @property ref);

View File

@@ -7952,7 +7952,7 @@
<dependencies/>
</relation>
<relation>
<name>hasPublicKeyword</name>
<name>has_public_keyword</name>
<cardinality>9297</cardinality>
<columnsizes>
<e>

View File

@@ -42,3 +42,5 @@ is_const_enum.rel: reorder isConstEnum.rel(int id) id
isConstEnum.rel: delete
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