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

Skip to content

Commit 21733af

Browse files
committed
renamed "regexpConstValue" to "regexp_const_value"
1 parent 9a1a439 commit 21733af

65 files changed

Lines changed: 189 additions & 182 deletions

File tree

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/RegExpExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ public void visit(DecimalEscape nd) {
297297

298298
private void visit(Literal nd) {
299299
Label lbl = extractTerm(nd, parent, idx);
300-
trapwriter.addTuple("regexpConstValue", lbl, nd.getValue());
300+
trapwriter.addTuple("regexp_const_value", lbl, nd.getValue());
301301
}
302302

303303
@Override

javascript/extractor/tests/closure/output/trap/googDotDeclareModuleId.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ regexpterm(#20048,14,#20047,0,"test")
154154
#20049=@"loc,{#10000},1,23,1,26"
155155
locations_default(#20049,#10000,1,23,1,26)
156156
hasLocation(#20048,#20049)
157-
regexpConstValue(#20048,"test")
157+
regexp_const_value(#20048,"test")
158158
#20050=*
159159
stmts(#20050,30,#20001,1,"export let x = 5;")
160160
hasLocation(#20050,#20007)

javascript/extractor/tests/closure/output/trap/googDotModule.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ regexpterm(#20063,14,#20062,0,"test")
191191
#20064=@"loc,{#10000},1,14,1,17"
192192
locations_default(#20064,#10000,1,14,1,17)
193193
hasLocation(#20063,#20064)
194-
regexpConstValue(#20063,"test")
194+
regexp_const_value(#20063,"test")
195195
#20065=*
196196
stmts(#20065,18,#20001,1,"var x = 5;")
197197
hasLocation(#20065,#20005)

javascript/extractor/tests/closure/output/trap/googDotProvide.js.trap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ regexpterm(#20048,14,#20046,0,"test")
151151
#20049=@"loc,{#10000},1,15,1,18"
152152
locations_default(#20049,#10000,1,15,1,18)
153153
hasLocation(#20048,#20049)
154-
regexpConstValue(#20048,"test")
154+
regexp_const_value(#20048,"test")
155155
#20050=*
156156
regexpterm(#20050,12,#20046,1,".")
157157
#20051=@"loc,{#10000},1,19,1,19"
@@ -162,7 +162,7 @@ regexpterm(#20052,14,#20046,2,"x")
162162
#20053=@"loc,{#10000},1,20,1,20"
163163
locations_default(#20053,#10000,1,20,1,20)
164164
hasLocation(#20052,#20053)
165-
regexpConstValue(#20052,"x")
165+
regexp_const_value(#20052,"x")
166166
#20054=*
167167
stmts(#20054,2,#20001,1,"test.x = 5;")
168168
hasLocation(#20054,#20007)

javascript/extractor/tests/encoding/output/trap/surrogates.js.trap

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ regexpterm(#20076,14,#20075,0,"?")
224224
#20077=@"loc,{#10000},2,2,2,7"
225225
locations_default(#20077,#10000,2,2,2,7)
226226
hasLocation(#20076,#20077)
227-
regexpConstValue(#20076,"?")
227+
regexp_const_value(#20076,"?")
228228
#20078=*
229229
stmts(#20078,2,#20001,1,"'foo\ud800';")
230230
hasLocation(#20078,#20012)
@@ -240,7 +240,7 @@ regexpterm(#20080,14,#20079,0,"foo?")
240240
#20081=@"loc,{#10000},3,2,3,10"
241241
locations_default(#20081,#10000,3,2,3,10)
242242
hasLocation(#20080,#20081)
243-
regexpConstValue(#20080,"foo?")
243+
regexp_const_value(#20080,"foo?")
244244
#20082=*
245245
stmts(#20082,2,#20001,2,"'\ud800bar';")
246246
hasLocation(#20082,#20014)
@@ -256,7 +256,7 @@ regexpterm(#20084,14,#20083,0,"?bar")
256256
#20085=@"loc,{#10000},4,2,4,10"
257257
locations_default(#20085,#10000,4,2,4,10)
258258
hasLocation(#20084,#20085)
259-
regexpConstValue(#20084,"?bar")
259+
regexp_const_value(#20084,"?bar")
260260
#20086=*
261261
stmts(#20086,2,#20001,3,"'foo\ud800bar';")
262262
hasLocation(#20086,#20016)
@@ -272,7 +272,7 @@ regexpterm(#20088,14,#20087,0,"foo?bar")
272272
#20089=@"loc,{#10000},5,2,5,13"
273273
locations_default(#20089,#10000,5,2,5,13)
274274
hasLocation(#20088,#20089)
275-
regexpConstValue(#20088,"foo?bar")
275+
regexp_const_value(#20088,"foo?bar")
276276
#20090=*
277277
stmts(#20090,2,#20001,4,"/\uD800/;")
278278
hasLocation(#20090,#20018)
@@ -288,7 +288,7 @@ regexpterm(#20092,16,#20091,0,"\uD800")
288288
#20093=@"loc,{#10000},6,2,6,7"
289289
locations_default(#20093,#10000,6,2,6,7)
290290
hasLocation(#20092,#20093)
291-
regexpConstValue(#20092,"?")
291+
regexp_const_value(#20092,"?")
292292
#20094=*
293293
stmts(#20094,2,#20001,5,"/foo\ud800/;")
294294
hasLocation(#20094,#20020)
@@ -309,13 +309,13 @@ regexpterm(#20098,14,#20096,0,"foo")
309309
#20099=@"loc,{#10000},7,2,7,4"
310310
locations_default(#20099,#10000,7,2,7,4)
311311
hasLocation(#20098,#20099)
312-
regexpConstValue(#20098,"foo")
312+
regexp_const_value(#20098,"foo")
313313
#20100=*
314314
regexpterm(#20100,16,#20096,1,"\ud800")
315315
#20101=@"loc,{#10000},7,5,7,10"
316316
locations_default(#20101,#10000,7,5,7,10)
317317
hasLocation(#20100,#20101)
318-
regexpConstValue(#20100,"?")
318+
regexp_const_value(#20100,"?")
319319
#20102=*
320320
stmts(#20102,2,#20001,6,"/\ud800bar/;")
321321
hasLocation(#20102,#20022)
@@ -336,13 +336,13 @@ regexpterm(#20106,16,#20104,0,"\ud800")
336336
#20107=@"loc,{#10000},8,2,8,7"
337337
locations_default(#20107,#10000,8,2,8,7)
338338
hasLocation(#20106,#20107)
339-
regexpConstValue(#20106,"?")
339+
regexp_const_value(#20106,"?")
340340
#20108=*
341341
regexpterm(#20108,14,#20104,1,"bar")
342342
#20109=@"loc,{#10000},8,8,8,10"
343343
locations_default(#20109,#10000,8,8,8,10)
344344
hasLocation(#20108,#20109)
345-
regexpConstValue(#20108,"bar")
345+
regexp_const_value(#20108,"bar")
346346
#20110=*
347347
stmts(#20110,2,#20001,7,"/foo\ud800bar/;")
348348
hasLocation(#20110,#20024)
@@ -363,19 +363,19 @@ regexpterm(#20114,14,#20112,0,"foo")
363363
#20115=@"loc,{#10000},9,2,9,4"
364364
locations_default(#20115,#10000,9,2,9,4)
365365
hasLocation(#20114,#20115)
366-
regexpConstValue(#20114,"foo")
366+
regexp_const_value(#20114,"foo")
367367
#20116=*
368368
regexpterm(#20116,16,#20112,1,"\ud800")
369369
#20117=@"loc,{#10000},9,5,9,10"
370370
locations_default(#20117,#10000,9,5,9,10)
371371
hasLocation(#20116,#20117)
372-
regexpConstValue(#20116,"?")
372+
regexp_const_value(#20116,"?")
373373
#20118=*
374374
regexpterm(#20118,14,#20112,2,"bar")
375375
#20119=@"loc,{#10000},9,11,9,13"
376376
locations_default(#20119,#10000,9,11,9,13)
377377
hasLocation(#20118,#20119)
378-
regexpConstValue(#20118,"bar")
378+
regexp_const_value(#20118,"bar")
379379
#20120=*
380380
stmts(#20120,2,#20001,8,"'\udc00\ud800';")
381381
hasLocation(#20120,#20027)
@@ -391,7 +391,7 @@ regexpterm(#20122,14,#20121,0,"??")
391391
#20123=@"loc,{#10000},11,2,11,13"
392392
locations_default(#20123,#10000,11,2,11,13)
393393
hasLocation(#20122,#20123)
394-
regexpConstValue(#20122,"??")
394+
regexp_const_value(#20122,"??")
395395
#20124=*
396396
stmts(#20124,2,#20001,9,"'\uD834\uDF06';")
397397
hasLocation(#20124,#20030)
@@ -407,7 +407,7 @@ regexpterm(#20126,14,#20125,0,"𝌆")
407407
#20127=@"loc,{#10000},13,2,13,13"
408408
locations_default(#20127,#10000,13,2,13,13)
409409
hasLocation(#20126,#20127)
410-
regexpConstValue(#20126,"𝌆")
410+
regexp_const_value(#20126,"𝌆")
411411
#20128=*
412412
entry_cfg_node(#20128,#20001)
413413
#20129=@"loc,{#10000},1,1,1,0"

javascript/extractor/tests/encoding/output/trap/unicode.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ regexpterm(#20009,14,#20008,0,"Semmlé")
4040
#20010=@"loc,{#10000},1,2,1,7"
4141
locations_default(#20010,#10000,1,2,1,7)
4242
hasLocation(#20009,#20010)
43-
regexpConstValue(#20009,"Semmlé")
43+
regexp_const_value(#20009,"Semmlé")
4444
#20011=*
4545
entry_cfg_node(#20011,#20001)
4646
#20012=@"loc,{#10000},1,1,1,0"

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ regexpterm(#20107,14,#20106,0,"a")
292292
#20108=@"loc,{#10000},1,3,1,3"
293293
locations_default(#20108,#10000,1,3,1,3)
294294
hasLocation(#20107,#20108)
295-
regexpConstValue(#20107,"a")
295+
regexp_const_value(#20107,"a")
296296
#20109=*
297297
exprs(#20109,4,#20104,1,"""ab""")
298298
hasLocation(#20109,#20015)
@@ -304,7 +304,7 @@ regexpterm(#20110,14,#20109,0,"ab")
304304
#20111=@"loc,{#10000},1,8,1,9"
305305
locations_default(#20111,#10000,1,8,1,9)
306306
hasLocation(#20110,#20111)
307-
regexpConstValue(#20110,"ab")
307+
regexp_const_value(#20110,"ab")
308308
#20112=*
309309
exprs(#20112,4,#20104,2,"""abc""")
310310
hasLocation(#20112,#20019)
@@ -316,7 +316,7 @@ regexpterm(#20113,14,#20112,0,"abc")
316316
#20114=@"loc,{#10000},1,14,1,16"
317317
locations_default(#20114,#10000,1,14,1,16)
318318
hasLocation(#20113,#20114)
319-
regexpConstValue(#20113,"abc")
319+
regexp_const_value(#20113,"abc")
320320
array_size(#20104,3)
321321
#20115=*
322322
exprs(#20115,0,#20102,1,"map")
@@ -481,7 +481,7 @@ regexpterm(#20155,14,#20154,0,"Wake up!")
481481
#20156=@"loc,{#10000},3,27,3,34"
482482
locations_default(#20156,#10000,3,27,3,34)
483483
hasLocation(#20155,#20156)
484-
regexpConstValue(#20155,"Wake up!")
484+
regexp_const_value(#20155,"Wake up!")
485485
#20157=*
486486
exprs(#20157,3,#20139,1,"60000")
487487
hasLocation(#20157,#20091)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ regexpterm(#20057,14,#20056,0,"A")
182182
#20058=@"loc,{#10000},3,13,3,13"
183183
locations_default(#20058,#10000,3,13,3,13)
184184
hasLocation(#20057,#20058)
185-
regexpConstValue(#20057,"A")
185+
regexp_const_value(#20057,"A")
186186
is_method(#20045)
187187
is_static(#20045)
188188
#20059=*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ regexpterm(#20019,14,#20018,0,"foo")
6868
#20020=@"loc,{#10000},1,16,1,18"
6969
locations_default(#20020,#10000,1,16,1,18)
7070
hasLocation(#20019,#20020)
71-
regexpConstValue(#20019,"foo")
71+
regexp_const_value(#20019,"foo")
7272
#20021=*
7373
entry_cfg_node(#20021,#20001)
7474
#20022=@"loc,{#10000},1,1,1,0"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ regexpterm(#20031,14,#20030,0,"foo")
9898
#20032=@"loc,{#10000},1,28,1,30"
9999
locations_default(#20032,#10000,1,28,1,30)
100100
hasLocation(#20031,#20032)
101-
regexpConstValue(#20031,"foo")
101+
regexp_const_value(#20031,"foo")
102102
#20033=*
103103
exprs(#20033,86,#20029,0,"x")
104104
hasLocation(#20033,#20009)

0 commit comments

Comments
 (0)