renamed "hasRestParameter" to "has_rest_parameter"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:52:15 +02:00
parent b3f7c26669
commit ba645b555f
16 changed files with 24 additions and 17 deletions

View File

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

View File

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

View File

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

View File

@@ -11698,7 +11698,7 @@
<dependencies/>
</relation>
<relation>
<name>hasRestParameter</name>
<name>has_rest_parameter</name>
<cardinality>33</cardinality>
<columnsizes>
<e>