mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
renamed "isAsync" to "is_async"
This commit is contained in:
@@ -290,3 +290,8 @@ deprecated predicate isGenerator(Function fun) { is_generator(fun) }
|
||||
* Use `Function#hasRestParameter()` instead.
|
||||
*/
|
||||
deprecated predicate hasRestParameter(Function fun) { has_rest_parameter(fun) }
|
||||
/**
|
||||
* Alias for the predicate `is_async` defined in the .dbscheme.
|
||||
* Use `Function#isAsync()` instead.
|
||||
*/
|
||||
deprecated predicate isAsync(Function fun) { is_async(fun) }
|
||||
|
||||
@@ -202,7 +202,7 @@ class Function extends @function, Parameterized, TypeParameterized, StmtContaine
|
||||
predicate hasTrailingComma() { lastTokenOfParameterList().getNextToken().getValue() = "," }
|
||||
|
||||
/** Holds if this function is an asynchronous function. */
|
||||
predicate isAsync() { isAsync(this) }
|
||||
predicate isAsync() { is_async(this) }
|
||||
|
||||
/** Holds if this function is asynchronous or a generator. */
|
||||
predicate isAsyncOrGenerator() { isAsync() or isGenerator() }
|
||||
|
||||
@@ -441,7 +441,7 @@ scopenesting (unique int inner: @scope ref,
|
||||
|
||||
is_generator (int fun: @function ref);
|
||||
has_rest_parameter (int fun: @function ref);
|
||||
isAsync (int fun: @function ref);
|
||||
is_async (int fun: @function ref);
|
||||
|
||||
// variables and lexically scoped type names
|
||||
#keyset[scope, name]
|
||||
|
||||
@@ -11709,7 +11709,7 @@
|
||||
<dependencies/>
|
||||
</relation>
|
||||
<relation>
|
||||
<name>isAsync</name>
|
||||
<name>is_async</name>
|
||||
<cardinality>50</cardinality>
|
||||
<columnsizes>
|
||||
<e>
|
||||
|
||||
Reference in New Issue
Block a user