mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
renamed "hasRestParameter" to "has_rest_parameter"
This commit is contained in:
@@ -285,3 +285,8 @@ deprecated predicate unicodePropertyEscapeValue(RegExpUnicodePropertyEscape id,
|
||||
* Use `Function#isGenerator()` instead.
|
||||
*/
|
||||
deprecated predicate isGenerator(Function fun) { is_generator(fun) }
|
||||
/**
|
||||
* Alias for the predicate `has_rest_parameter` defined in the .dbscheme.
|
||||
* Use `Function#hasRestParameter()` instead.
|
||||
*/
|
||||
deprecated predicate hasRestParameter(Function fun) { has_rest_parameter(fun) }
|
||||
|
||||
@@ -171,7 +171,7 @@ class Function extends @function, Parameterized, TypeParameterized, StmtContaine
|
||||
}
|
||||
|
||||
/** Holds if the last parameter of this function is a rest parameter. */
|
||||
predicate hasRestParameter() { hasRestParameter(this) }
|
||||
predicate hasRestParameter() { has_rest_parameter(this) }
|
||||
|
||||
/**
|
||||
* Gets the last token of this function's parameter list, not including
|
||||
|
||||
@@ -440,7 +440,7 @@ scopenesting (unique int inner: @scope ref,
|
||||
@type_parameterized = @function | @classorinterface | @typealiasdeclaration | @mappedtypeexpr | @infertypeexpr;
|
||||
|
||||
is_generator (int fun: @function ref);
|
||||
hasRestParameter (int fun: @function ref);
|
||||
has_rest_parameter (int fun: @function ref);
|
||||
isAsync (int fun: @function ref);
|
||||
|
||||
// variables and lexically scoped type names
|
||||
|
||||
@@ -11698,7 +11698,7 @@
|
||||
<dependencies/>
|
||||
</relation>
|
||||
<relation>
|
||||
<name>hasRestParameter</name>
|
||||
<name>has_rest_parameter</name>
|
||||
<cardinality>33</cardinality>
|
||||
<columnsizes>
|
||||
<e>
|
||||
|
||||
Reference in New Issue
Block a user