renamed "isClosureModule" to "is_closure_module"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:51:43 +02:00
parent 2a2901f6ae
commit 07fd747069
6 changed files with 10 additions and 4 deletions

View File

@@ -697,7 +697,7 @@ public class ASTExtractor {
// Emit the specific source type.
switch (sourceType) {
case CLOSURE_MODULE:
trapwriter.addTuple("isClosureModule", toplevelLabel);
trapwriter.addTuple("is_closure_module", toplevelLabel);
break;
case MODULE:
trapwriter.addTuple("is_es2015_module", toplevelLabel);

View File

@@ -144,7 +144,7 @@ scopenesting(#20051,#20000)
#20052=@"var;{exports};{#20051}"
variables(#20052,"exports",#20051)
is_module(#20001)
isClosureModule(#20001)
is_closure_module(#20001)
#20053=@"var;{x};{#20051}"
variables(#20053,"x",#20051)
#20054=*

View File

@@ -87,3 +87,7 @@ deprecated predicate isNodejs(TopLevel toplevel) { is_nodejs(toplevel) }
* Use `ES2015Module` from `ES2015Modules.qll` instead.
*/
deprecated predicate isES2015Module(TopLevel toplevel) { is_es2015_module(toplevel) }
/**
* Alias for the predicate `is_closure_module` defined in the .dbscheme.
*/
deprecated predicate isClosureModule(TopLevel toplevel) { is_closure_module(toplevel) }

View File

@@ -129,7 +129,7 @@ case @toplevel.kind of
is_module (int tl: @toplevel ref);
is_nodejs (int tl: @toplevel ref);
is_es2015_module (int tl: @toplevel ref);
isClosureModule (int tl: @toplevel ref);
is_closure_module (int tl: @toplevel ref);
// statements
#keyset[parent, idx]

View File

@@ -9249,7 +9249,7 @@
<dependencies/>
</relation>
<relation>
<name>isClosureModule</name>
<name>is_closure_module</name>
<cardinality>21</cardinality>
<columnsizes>
<e>

View File

@@ -8,3 +8,5 @@ is_nodejs.rel: reorder isNodejs.rel(int toplevel) toplevel
isNodejs.rel: delete
is_es2015_module.rel: reorder isES2015Module.rel(int toplevel) toplevel
isES2015Module.rel: delete
is_closure_module.rel: reorder isClosureModule.rel(int toplevel) toplevel
isClosureModule.rel: delete