mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
renamed "hasReadonlyKeyword" to "has_readonly_keyword"
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user