renamed "hasReadonlyKeyword" to "has_readonly_keyword"

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

View File

@@ -40,7 +40,7 @@ public class DeclarationFlags {
"is_computed", "is_computed",
"is_abstract_member", "is_abstract_member",
"is_static", "is_static",
"hasReadonlyKeyword", "has_readonly_keyword",
"has_public_keyword", "has_public_keyword",
"has_private_keyword", "has_private_keyword",
"has_protected_keyword", "has_protected_keyword",

View File

@@ -185,3 +185,8 @@ deprecated predicate hasPrivateKeyword(Property prop) { has_private_keyword(prop
* Use `MemberDeclaration#isProtected() instead. * Use `MemberDeclaration#isProtected() instead.
*/ */
deprecated predicate hasProtectedKeyword(Property prop) { has_protected_keyword(prop) } deprecated predicate hasProtectedKeyword(Property prop) { has_protected_keyword(prop) }
/**
* Alias for the predicate `has_readonly_keyword` defined in the .dbscheme.
* Use `FieldDeclaration#isReadonly()` instead.
*/
deprecated predicate hasReadonlyKeyword(Property prop) { has_readonly_keyword(prop) }

View File

@@ -1040,7 +1040,7 @@ class FieldDeclaration extends MemberDeclaration, @field {
} }
/** Holds if this is a TypeScript field annotated with the `readonly` keyword. */ /** Holds if this is a TypeScript field annotated with the `readonly` keyword. */
predicate isReadonly() { hasReadonlyKeyword(this) } predicate isReadonly() { has_readonly_keyword(this) }
/** Holds if this is a TypeScript field marked as optional with the `?` operator. */ /** Holds if this is a TypeScript field marked as optional with the `?` operator. */
predicate isOptional() { isOptionalMember(this) } predicate isOptional() { isOptionalMember(this) }

View File

@@ -523,7 +523,7 @@ is_abstract_class (int id: @classdeclstmt ref);
has_public_keyword (int id: @property ref); has_public_keyword (int id: @property ref);
has_private_keyword (int id: @property ref); has_private_keyword (int id: @property ref);
has_protected_keyword (int id: @property ref); has_protected_keyword (int id: @property ref);
hasReadonlyKeyword (int id: @property ref); has_readonly_keyword (int id: @property ref);
hasTypeKeyword (int id: @import_or_export_declaration ref); hasTypeKeyword (int id: @import_or_export_declaration ref);
isOptionalMember (int id: @property ref); isOptionalMember (int id: @property ref);
hasDefiniteAssignmentAssertion (int id: @field_or_vardeclarator ref); hasDefiniteAssignmentAssertion (int id: @field_or_vardeclarator ref);

View File

@@ -7985,7 +7985,7 @@
<dependencies/> <dependencies/>
</relation> </relation>
<relation> <relation>
<name>hasReadonlyKeyword</name> <name>has_readonly_keyword</name>
<cardinality>2338</cardinality> <cardinality>2338</cardinality>
<columnsizes> <columnsizes>
<e> <e>

View File

@@ -48,3 +48,5 @@ has_private_keyword.rel: reorder hasPrivateKeyword.rel(int prop) prop
hasPrivateKeyword.rel: delete hasPrivateKeyword.rel: delete
has_protected_keyword.rel: reorder hasProtectedKeyword.rel(int prop) prop has_protected_keyword.rel: reorder hasProtectedKeyword.rel(int prop) prop
hasProtectedKeyword.rel: delete hasProtectedKeyword.rel: delete
has_readonly_keyword.rel: reorder hasReadonlyKeyword.rel(int prop) prop
hasReadonlyKeyword.rel: delete