renamed "arraySize" to "array_size"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:51:50 +02:00
parent 83b89fa52d
commit ba600acd5e
24 changed files with 39 additions and 32 deletions

View File

@@ -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) }

View File

@@ -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

View File

@@ -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) {

View File

@@ -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);

View File

@@ -11393,7 +11393,7 @@
</dependencies>
</relation>
<relation>
<name>arraySize</name>
<name>array_size</name>
<cardinality>28188</cardinality>
<columnsizes>
<e>