Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10439fb

Browse files
committed
renamed "isMethod" to "is_method"
1 parent 6382f6d commit 10439fb

49 files changed

Lines changed: 103 additions & 96 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

javascript/extractor/src/com/semmle/js/extractor/ASTExtractor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ public Label visit(Property nd, Context c) {
11331133
visit(nd.getValue(), propkey, 1, c.idcontext);
11341134
visit(nd.getDefaultValue(), propkey, 2, IdContext.varBind);
11351135
if (nd.isComputed()) trapwriter.addTuple("is_computed", propkey);
1136-
if (nd.isMethod()) trapwriter.addTuple("isMethod", propkey);
1136+
if (nd.isMethod()) trapwriter.addTuple("is_method", propkey);
11371137
return propkey;
11381138
}
11391139

@@ -1520,7 +1520,7 @@ public Label visit(MemberDefinition<?> nd, Context c) {
15201520
if (ctor != null) contextManager.leaveContainer();
15211521

15221522
if (nd instanceof MethodDefinition && !nd.isCallSignature() && !nd.isIndexSignature())
1523-
trapwriter.addTuple("isMethod", methkey);
1523+
trapwriter.addTuple("is_method", methkey);
15241524
// Emit tuples for isStatic, isAbstract, isComputed, etc
15251525
for (int i = 0; i < DeclarationFlags.numberOfFlags; ++i) {
15261526
if (DeclarationFlags.hasNthFlag(nd.getFlags(), i)) {

javascript/extractor/tests/cfg/output/trap/classexpr1.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ is_arguments_object(#20026)
9292
stmts(#20027,1,#20024,-2,"{}")
9393
hasLocation(#20027,#20022)
9494
stmt_containers(#20027,#20024)
95-
isMethod(#20021)
95+
is_method(#20021)
9696
#20028=*
9797
entry_cfg_node(#20028,#20001)
9898
#20029=@"loc,{#10000},1,1,1,0"

javascript/extractor/tests/cfg/output/trap/classexpr2.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ is_arguments_object(#20032)
113113
stmts(#20033,1,#20030,-2,"{}")
114114
hasLocation(#20033,#20028)
115115
stmt_containers(#20033,#20030)
116-
isMethod(#20027)
116+
is_method(#20027)
117117
#20034=*
118118
entry_cfg_node(#20034,#20001)
119119
#20035=@"loc,{#10000},1,1,1,0"

javascript/extractor/tests/cfg/output/trap/classexpr3.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ enclosing_stmt(#20040,#20036)
146146
expr_containers(#20040,#20030)
147147
literals("args","args",#20040)
148148
bind(#20040,#20032)
149-
isMethod(#20027)
149+
is_method(#20027)
150150
#20041=*
151151
entry_cfg_node(#20041,#20001)
152152
#20042=@"loc,{#10000},1,1,1,0"

javascript/extractor/tests/cfg/output/trap/classexpr4.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ enclosing_stmt(#20046,#20042)
167167
expr_containers(#20046,#20036)
168168
literals("args","args",#20046)
169169
bind(#20046,#20038)
170-
isMethod(#20033)
170+
is_method(#20033)
171171
#20047=*
172172
entry_cfg_node(#20047,#20001)
173173
#20048=@"loc,{#10000},1,1,1,0"

javascript/extractor/tests/cfg/output/trap/fields.js.trap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ literals("ctor","ctor",#20154)
448448
#20155=@"var;{ctor};{#20000}"
449449
variables(#20155,"ctor",#20000)
450450
bind(#20154,#20155)
451-
isMethod(#20143)
451+
is_method(#20143)
452452
#20156=*
453453
properties(#20156,#20139,3,8,"x;")
454454
#20157=@"loc,{#10000},5,3,5,4"
@@ -502,7 +502,7 @@ stmts(#20169,1,#20165,-2,"{}")
502502
locations_default(#20170,#10000,7,7,7,8)
503503
hasLocation(#20169,#20170)
504504
stmt_containers(#20169,#20165)
505-
isMethod(#20162)
505+
is_method(#20162)
506506
#20171=*
507507
properties(#20171,#20139,6,0,"static g() {}")
508508
#20172=@"loc,{#10000},8,3,8,15"
@@ -534,7 +534,7 @@ stmts(#20178,1,#20174,-2,"{}")
534534
locations_default(#20179,#10000,8,14,8,15)
535535
hasLocation(#20178,#20179)
536536
stmt_containers(#20178,#20174)
537-
isMethod(#20171)
537+
is_method(#20171)
538538
isStatic(#20171)
539539
#20180=*
540540
stmts(#20180,26,#20001,1,"class B ... \n z;\n}")
@@ -640,7 +640,7 @@ literals("after","after",#20205)
640640
#20206=@"var;{after};{#20000}"
641641
variables(#20206,"after",#20000)
642642
bind(#20205,#20206)
643-
isMethod(#20185)
643+
is_method(#20185)
644644
#20207=*
645645
properties(#20207,#20180,3,8,"z;")
646646
#20208=@"loc,{#10000},17,3,17,4"

javascript/extractor/tests/es2015/output/trap/class_accessors.js.trap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ hasLocation(#20097,#20041)
290290
enclosing_stmt(#20097,#20092)
291291
expr_containers(#20097,#20086)
292292
literals("_x","_x",#20097)
293-
isMethod(#20083)
293+
is_method(#20083)
294294
#20098=*
295295
properties(#20098,#20080,3,2,"set x(v ... +v;\n }")
296296
#20099=@"loc,{#10000},5,3,7,3"
@@ -375,7 +375,7 @@ enclosing_stmt(#20119,#20109)
375375
expr_containers(#20119,#20101)
376376
literals("v","v",#20119)
377377
bind(#20119,#20104)
378-
isMethod(#20098)
378+
is_method(#20098)
379379
#20120=*
380380
properties(#20120,#20080,4,0,"constructor() {}")
381381
#20121=@"loc,{#10000},1,9,1,8"
@@ -403,7 +403,7 @@ is_arguments_object(#20125)
403403
stmts(#20126,1,#20123,-2,"{}")
404404
hasLocation(#20126,#20121)
405405
stmt_containers(#20126,#20123)
406-
isMethod(#20120)
406+
is_method(#20120)
407407
#20127=*
408408
entry_cfg_node(#20127,#20001)
409409
#20128=@"loc,{#10000},1,1,1,0"

javascript/extractor/tests/es2015/output/trap/class_ctor.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ enclosing_stmt(#20070,#20062)
226226
expr_containers(#20070,#20054)
227227
literals("x","x",#20070)
228228
bind(#20070,#20057)
229-
isMethod(#20051)
229+
is_method(#20051)
230230
#20071=*
231231
entry_cfg_node(#20071,#20001)
232232
#20072=@"loc,{#10000},1,1,1,0"

javascript/extractor/tests/es2015/output/trap/class_extends.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ enclosing_stmt(#20038,#20034)
143143
expr_containers(#20038,#20028)
144144
literals("args","args",#20038)
145145
bind(#20038,#20030)
146-
isMethod(#20025)
146+
is_method(#20025)
147147
#20039=*
148148
entry_cfg_node(#20039,#20001)
149149
#20040=@"loc,{#10000},1,1,1,0"

javascript/extractor/tests/es2015/output/trap/class_extends2.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ enclosing_stmt(#20071,#20067)
245245
expr_containers(#20071,#20061)
246246
literals("args","args",#20071)
247247
bind(#20071,#20063)
248-
isMethod(#20058)
248+
is_method(#20058)
249249
#20072=*
250250
entry_cfg_node(#20072,#20001)
251251
#20073=@"loc,{#10000},1,1,1,0"

0 commit comments

Comments
 (0)