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

@@ -890,7 +890,7 @@ public class ASTExtractor {
private void extractFunctionAttributes(IFunction nd, Label key) {
if (nd.isGenerator()) trapwriter.addTuple("is_generator", key);
if (nd.hasRest()) trapwriter.addTuple("hasRestParameter", key);
if (nd.hasRest()) trapwriter.addTuple("has_rest_parameter", key);
if (nd.isAsync()) trapwriter.addTuple("isAsync", key);
}

View File

@@ -115,7 +115,7 @@ decl(#20033,#20032)
#20034=@"var;{arguments};{#20031}"
variables(#20034,"arguments",#20031)
is_arguments_object(#20034)
hasRestParameter(#20030)
has_rest_parameter(#20030)
#20035=*
stmts(#20035,1,#20030,-2,"{ super(...args); }")
hasLocation(#20035,#20028)

View File

@@ -136,7 +136,7 @@ decl(#20039,#20038)
#20040=@"var;{arguments};{#20037}"
variables(#20040,"arguments",#20037)
is_arguments_object(#20040)
hasRestParameter(#20036)
has_rest_parameter(#20036)
#20041=*
stmts(#20041,1,#20036,-2,"{ super(...args); }")
hasLocation(#20041,#20034)

View File

@@ -112,7 +112,7 @@ decl(#20031,#20030)
#20032=@"var;{arguments};{#20029}"
variables(#20032,"arguments",#20029)
is_arguments_object(#20032)
hasRestParameter(#20028)
has_rest_parameter(#20028)
#20033=*
stmts(#20033,1,#20028,-2,"{ super(...args); }")
hasLocation(#20033,#20026)

View File

@@ -214,7 +214,7 @@ decl(#20064,#20063)
#20065=@"var;{arguments};{#20062}"
variables(#20065,"arguments",#20062)
is_arguments_object(#20065)
hasRestParameter(#20061)
has_rest_parameter(#20061)
#20066=*
stmts(#20066,1,#20061,-2,"{ super(...args); }")
hasLocation(#20066,#20059)

View File

@@ -113,7 +113,7 @@ decl(#20035,#20034)
#20036=@"var;{arguments};{#20031}"
variables(#20036,"arguments",#20031)
is_arguments_object(#20036)
hasRestParameter(#20029)
has_rest_parameter(#20029)
#20037=*
stmts(#20037,1,#20029,-2,"{\n}")
#20038=@"loc,{#10000},1,22,2,1"

View File

@@ -285,7 +285,7 @@ decl(#20087,#20086)
#20088=@"var;{arguments};{#20085}"
variables(#20088,"arguments",#20085)
is_arguments_object(#20088)
hasRestParameter(#20084)
has_rest_parameter(#20084)
#20089=*
stmts(#20089,1,#20084,-2,"{ super(...args); }")
hasLocation(#20089,#20082)

View File

@@ -441,7 +441,7 @@ decl(#20164,#20163)
#20165=@"var;{arguments};{#20160}"
variables(#20165,"arguments",#20160)
is_arguments_object(#20165)
hasRestParameter(#20157)
has_rest_parameter(#20157)
#20166=*
stmts(#20166,1,#20157,-2,"{\n ret ... , ');\n}")
#20167=@"loc,{#10000},1,34,3,1"

View File

@@ -377,7 +377,7 @@ decl(#20120,#20119)
#20121=@"var;{arguments};{#20118}"
variables(#20121,"arguments",#20118)
is_arguments_object(#20121)
hasRestParameter(#20109)
has_rest_parameter(#20109)
#20122=*
stmts(#20122,1,#20109,-2,"{ super(...args); }")
hasLocation(#20122,#20116)

View File

@@ -179,7 +179,7 @@ decl(#20053,#20052)
#20054=@"var;{arguments};{#20051}"
variables(#20054,"arguments",#20051)
is_arguments_object(#20054)
hasRestParameter(#20050)
has_rest_parameter(#20050)
#20055=*
stmts(#20055,1,#20050,-2,"{ super(...args); }")
hasLocation(#20055,#20048)

View File

@@ -8401,7 +8401,7 @@ typeexprs(#22802,2,#22800,0,"any")
hasLocation(#22802,#21449)
expr_containers(#22802,#22791)
literals("any","any",#22802)
hasRestParameter(#22791)
has_rest_parameter(#22791)
#22803=*
typeexprs(#22803,0,#22784,2,"R")
hasLocation(#22803,#21465)
@@ -8631,7 +8631,7 @@ typeexprs(#22864,2,#22862,0,"any")
hasLocation(#22864,#21526)
expr_containers(#22864,#22853)
literals("any","any",#22864)
hasRestParameter(#22853)
has_rest_parameter(#22853)
#22865=*
typeexprs(#22865,0,#22846,2,"U")
hasLocation(#22865,#21542)
@@ -9940,7 +9940,7 @@ typeexprs(#23169,2,#23167,0,"any")
hasLocation(#23169,#22110)
expr_containers(#23169,#23161)
literals("any","any",#23169)
hasRestParameter(#23161)
has_rest_parameter(#23161)
#23170=*
stmts(#23170,35,#22805,18,"type Re ... : any;")
#23171=@"loc,{#10000},100,3,100,91"
@@ -10055,7 +10055,7 @@ typeexprs(#23197,2,#23195,0,"any")
hasLocation(#23197,#22152)
expr_containers(#23197,#23186)
literals("any","any",#23197)
hasRestParameter(#23186)
has_rest_parameter(#23186)
#23198=*
typeexprs(#23198,0,#23179,2,"R")
hasLocation(#23198,#22168)

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>

View File

@@ -88,3 +88,5 @@ unicode_property_escapevalue.rel: reorder unicodePropertyEscapeValue.rel(int id,
unicodePropertyEscapeValue.rel: delete
is_generator.rel: reorder isGenerator.rel(int fun) fun
isGenerator.rel: delete
has_rest_parameter.rel: reorder hasRestParameter.rel(int fun) fun
hasRestParameter.rel: delete