mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
renamed "arraySize" to "array_size"
This commit is contained in:
@@ -125,3 +125,8 @@ deprecated predicate enclosingStmt(ExprOrType expr, Stmt stmt) { enclosing_stmt(
|
||||
* Use `ASTNode#getContainer()` instead.
|
||||
*/
|
||||
deprecated predicate exprContainers(ExprOrType expr, StmtContainer container) { expr_containers(expr, container) }
|
||||
/**
|
||||
* Alias for the predicate `array_size` defined in the .dbscheme.
|
||||
* Use `ArrayExpr#getSize()` instead.
|
||||
*/
|
||||
deprecated predicate arraySize(Expr ae, int sz) { array_size(ae, sz) }
|
||||
|
||||
@@ -510,7 +510,7 @@ class ArrayExpr extends @arrayexpr, Expr {
|
||||
Expr getAnElement() { result = this.getAChildExpr() }
|
||||
|
||||
/** Gets the number of elements in this array literal. */
|
||||
int getSize() { arraySize(this, result) }
|
||||
int getSize() { array_size(this, result) }
|
||||
|
||||
/**
|
||||
* Holds if this array literal includes a trailing comma after the
|
||||
|
||||
@@ -504,7 +504,7 @@ class ArrayPattern extends DestructuringPattern, @arraypattern {
|
||||
predicate hasRest() { exists(getRest()) }
|
||||
|
||||
/** Gets the number of elements in this array pattern, not including any rest pattern. */
|
||||
int getSize() { arraySize(this, result) }
|
||||
int getSize() { array_size(this, result) }
|
||||
|
||||
/** Holds if the `i`th element of this array pattern is omitted. */
|
||||
predicate elementIsOmitted(int i) {
|
||||
|
||||
@@ -223,7 +223,7 @@ enclosing_stmt (unique int expr: @exprortype ref,
|
||||
expr_containers (unique int expr: @exprortype ref,
|
||||
int container: @stmt_container ref);
|
||||
|
||||
arraySize (unique int ae: @arraylike ref,
|
||||
array_size (unique int ae: @arraylike ref,
|
||||
int sz: int ref);
|
||||
|
||||
isDelegating (int yield: @yieldexpr ref);
|
||||
|
||||
@@ -11393,7 +11393,7 @@
|
||||
</dependencies>
|
||||
</relation>
|
||||
<relation>
|
||||
<name>arraySize</name>
|
||||
<name>array_size</name>
|
||||
<cardinality>28188</cardinality>
|
||||
<columnsizes>
|
||||
<e>
|
||||
|
||||
Reference in New Issue
Block a user