mirror of
https://github.com/github/codeql.git
synced 2025-12-23 20:26:32 +01:00
renamed "hasReadonlyKeyword" to "has_readonly_keyword"
This commit is contained in:
@@ -40,7 +40,7 @@ public class DeclarationFlags {
|
||||
"is_computed",
|
||||
"is_abstract_member",
|
||||
"is_static",
|
||||
"hasReadonlyKeyword",
|
||||
"has_readonly_keyword",
|
||||
"has_public_keyword",
|
||||
"has_private_keyword",
|
||||
"has_protected_keyword",
|
||||
|
||||
@@ -185,3 +185,8 @@ deprecated predicate hasPrivateKeyword(Property prop) { has_private_keyword(prop
|
||||
* Use `MemberDeclaration#isProtected() instead.
|
||||
*/
|
||||
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) }
|
||||
|
||||
@@ -1040,7 +1040,7 @@ class FieldDeclaration extends MemberDeclaration, @field {
|
||||
}
|
||||
|
||||
/** 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. */
|
||||
predicate isOptional() { isOptionalMember(this) }
|
||||
|
||||
@@ -523,7 +523,7 @@ is_abstract_class (int id: @classdeclstmt ref);
|
||||
has_public_keyword (int id: @property ref);
|
||||
has_private_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);
|
||||
isOptionalMember (int id: @property ref);
|
||||
hasDefiniteAssignmentAssertion (int id: @field_or_vardeclarator ref);
|
||||
|
||||
@@ -7985,7 +7985,7 @@
|
||||
<dependencies/>
|
||||
</relation>
|
||||
<relation>
|
||||
<name>hasReadonlyKeyword</name>
|
||||
<name>has_readonly_keyword</name>
|
||||
<cardinality>2338</cardinality>
|
||||
<columnsizes>
|
||||
<e>
|
||||
|
||||
@@ -48,3 +48,5 @@ 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
|
||||
has_readonly_keyword.rel: reorder hasReadonlyKeyword.rel(int prop) prop
|
||||
hasReadonlyKeyword.rel: delete
|
||||
|
||||
Reference in New Issue
Block a user