renamed "isAsync" to "is_async"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:52:16 +02:00
parent ba645b555f
commit 22bce641b7
13 changed files with 23 additions and 16 deletions

View File

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

View File

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

View File

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

View File

@@ -11709,7 +11709,7 @@
<dependencies/>
</relation>
<relation>
<name>isAsync</name>
<name>is_async</name>
<cardinality>50</cardinality>
<columnsizes>
<e>