mirror of
https://github.com/github/codeql.git
synced 2026-02-12 21:21:16 +01:00
398 lines
12 KiB
Plaintext
398 lines
12 KiB
Plaintext
#10000=@"/intersection.js;sourcefile"
|
|
files(#10000,"/intersection.js")
|
|
#10001=@"/;folder"
|
|
folders(#10001,"/")
|
|
containerparent(#10001,#10000)
|
|
#10002=@"loc,{#10000},0,0,0,0"
|
|
locations_default(#10002,#10000,0,0,0,0)
|
|
hasLocation(#10000,#10002)
|
|
#20000=@"global_scope"
|
|
scopes(#20000,0)
|
|
#20001=@"script;{#10000},1,1"
|
|
#20002=*
|
|
comments(#20002,0,#20001," Valid use of intersection operator, matches b or c","// Vali ... b or c")
|
|
#20003=@"loc,{#10000},1,20,1,72"
|
|
locations_default(#20003,#10000,1,20,1,72)
|
|
hasLocation(#20002,#20003)
|
|
#20004=*
|
|
comments(#20004,0,#20001,"Valid regex, but no intersection operation: Matches the literal string ""abc&&bcd""","//Valid ... c&&bcd""")
|
|
#20005=@"loc,{#10000},2,14,2,96"
|
|
locations_default(#20005,#10000,2,14,2,96)
|
|
hasLocation(#20004,#20005)
|
|
#20006=*
|
|
comments(#20006,0,#20001," Valid regex, but incorrect intersection operation: ","// Vali ... ation: ")
|
|
#20007=@"loc,{#10000},3,18,3,71"
|
|
locations_default(#20007,#10000,3,18,3,71)
|
|
hasLocation(#20006,#20007)
|
|
#20008=*
|
|
comments(#20008,0,#20001," - Matches a single character from [abc]","// - Ma ... m [abc]")
|
|
#20009=@"loc,{#10000},4,18,4,59"
|
|
locations_default(#20009,#10000,4,18,4,59)
|
|
hasLocation(#20008,#20009)
|
|
#20010=*
|
|
comments(#20010,0,#20001," - Then the literal ""&&""","// - Th ... al ""&&""")
|
|
#20011=@"loc,{#10000},5,18,5,43"
|
|
locations_default(#20011,#10000,5,18,5,43)
|
|
hasLocation(#20010,#20011)
|
|
#20012=*
|
|
comments(#20012,0,#20001," - Then a single character from [bcd]","// - Th ... m [bcd]")
|
|
#20013=@"loc,{#10000},6,18,6,56"
|
|
locations_default(#20013,#10000,6,18,6,56)
|
|
hasLocation(#20012,#20013)
|
|
#20014=*
|
|
comments(#20014,0,#20001," Valid use of intersection operator, matches c","// Vali ... tches c")
|
|
#20015=@"loc,{#10000},7,25,7,72"
|
|
locations_default(#20015,#10000,7,25,7,72)
|
|
hasLocation(#20014,#20015)
|
|
#20016=*
|
|
lines(#20016,#20001,"/[[abc]&&[bcd]]/v; // Valid use of intersection operator, matches b or c","
|
|
")
|
|
#20017=@"loc,{#10000},1,1,1,72"
|
|
locations_default(#20017,#10000,1,1,1,72)
|
|
hasLocation(#20016,#20017)
|
|
#20018=*
|
|
lines(#20018,#20001,"/abc&&bcd/v; //Valid regex, but no intersection operation: Matches the literal string ""abc&&bcd""","
|
|
")
|
|
#20019=@"loc,{#10000},2,1,2,96"
|
|
locations_default(#20019,#10000,2,1,2,96)
|
|
hasLocation(#20018,#20019)
|
|
#20020=*
|
|
lines(#20020,#20001,"/[abc]&&[bcd]/v; // Valid regex, but incorrect intersection operation: ","
|
|
")
|
|
#20021=@"loc,{#10000},3,1,3,71"
|
|
locations_default(#20021,#10000,3,1,3,71)
|
|
hasLocation(#20020,#20021)
|
|
#20022=*
|
|
lines(#20022,#20001," // - Matches a single character from [abc]","
|
|
")
|
|
#20023=@"loc,{#10000},4,1,4,59"
|
|
locations_default(#20023,#10000,4,1,4,59)
|
|
hasLocation(#20022,#20023)
|
|
indentation(#10000,4," ",17)
|
|
#20024=*
|
|
lines(#20024,#20001," // - Then the literal ""&&""","
|
|
")
|
|
#20025=@"loc,{#10000},5,1,5,43"
|
|
locations_default(#20025,#10000,5,1,5,43)
|
|
hasLocation(#20024,#20025)
|
|
indentation(#10000,5," ",17)
|
|
#20026=*
|
|
lines(#20026,#20001," // - Then a single character from [bcd]","
|
|
")
|
|
#20027=@"loc,{#10000},6,1,6,56"
|
|
locations_default(#20027,#10000,6,1,6,56)
|
|
hasLocation(#20026,#20027)
|
|
indentation(#10000,6," ",17)
|
|
#20028=*
|
|
lines(#20028,#20001,"/[[abc]&&[bcd]&&[c]]/v; // Valid use of intersection operator, matches c","
|
|
")
|
|
#20029=@"loc,{#10000},7,1,7,72"
|
|
locations_default(#20029,#10000,7,1,7,72)
|
|
hasLocation(#20028,#20029)
|
|
numlines(#20001,7,4,7)
|
|
#20030=*
|
|
tokeninfo(#20030,5,#20001,0,"/[[abc]&&[bcd]]/v")
|
|
#20031=@"loc,{#10000},1,1,1,17"
|
|
locations_default(#20031,#10000,1,1,1,17)
|
|
hasLocation(#20030,#20031)
|
|
#20032=*
|
|
tokeninfo(#20032,8,#20001,1,";")
|
|
#20033=@"loc,{#10000},1,18,1,18"
|
|
locations_default(#20033,#10000,1,18,1,18)
|
|
hasLocation(#20032,#20033)
|
|
#20034=*
|
|
tokeninfo(#20034,5,#20001,2,"/abc&&bcd/v")
|
|
#20035=@"loc,{#10000},2,1,2,11"
|
|
locations_default(#20035,#10000,2,1,2,11)
|
|
hasLocation(#20034,#20035)
|
|
next_token(#20002,#20034)
|
|
#20036=*
|
|
tokeninfo(#20036,8,#20001,3,";")
|
|
#20037=@"loc,{#10000},2,12,2,12"
|
|
locations_default(#20037,#10000,2,12,2,12)
|
|
hasLocation(#20036,#20037)
|
|
#20038=*
|
|
tokeninfo(#20038,5,#20001,4,"/[abc]&&[bcd]/v")
|
|
#20039=@"loc,{#10000},3,1,3,15"
|
|
locations_default(#20039,#10000,3,1,3,15)
|
|
hasLocation(#20038,#20039)
|
|
next_token(#20004,#20038)
|
|
#20040=*
|
|
tokeninfo(#20040,8,#20001,5,";")
|
|
#20041=@"loc,{#10000},3,16,3,16"
|
|
locations_default(#20041,#10000,3,16,3,16)
|
|
hasLocation(#20040,#20041)
|
|
#20042=*
|
|
tokeninfo(#20042,5,#20001,6,"/[[abc]&&[bcd]&&[c]]/v")
|
|
#20043=@"loc,{#10000},7,1,7,22"
|
|
locations_default(#20043,#10000,7,1,7,22)
|
|
hasLocation(#20042,#20043)
|
|
next_token(#20006,#20042)
|
|
next_token(#20008,#20042)
|
|
next_token(#20010,#20042)
|
|
next_token(#20012,#20042)
|
|
#20044=*
|
|
tokeninfo(#20044,8,#20001,7,";")
|
|
#20045=@"loc,{#10000},7,23,7,23"
|
|
locations_default(#20045,#10000,7,23,7,23)
|
|
hasLocation(#20044,#20045)
|
|
#20046=*
|
|
tokeninfo(#20046,0,#20001,8,"")
|
|
#20047=@"loc,{#10000},8,1,8,0"
|
|
locations_default(#20047,#10000,8,1,8,0)
|
|
hasLocation(#20046,#20047)
|
|
next_token(#20014,#20046)
|
|
toplevels(#20001,0)
|
|
#20048=@"loc,{#10000},1,1,8,0"
|
|
locations_default(#20048,#10000,1,1,8,0)
|
|
hasLocation(#20001,#20048)
|
|
#20049=*
|
|
stmts(#20049,2,#20001,0,"/[[abc]&&[bcd]]/v;")
|
|
#20050=@"loc,{#10000},1,1,1,18"
|
|
locations_default(#20050,#10000,1,1,1,18)
|
|
hasLocation(#20049,#20050)
|
|
stmt_containers(#20049,#20001)
|
|
#20051=*
|
|
exprs(#20051,5,#20049,0,"/[[abc]&&[bcd]]/v")
|
|
hasLocation(#20051,#20031)
|
|
enclosing_stmt(#20051,#20049)
|
|
expr_containers(#20051,#20001)
|
|
literals("/[[abc]&&[bcd]]/v","/[[abc]&&[bcd]]/v",#20051)
|
|
#20052=*
|
|
regexpterm(#20052,23,#20051,0,"[[abc]&&[bcd]]")
|
|
#20053=@"loc,{#10000},1,2,1,15"
|
|
locations_default(#20053,#10000,1,2,1,15)
|
|
hasLocation(#20052,#20053)
|
|
#20054=*
|
|
regexpterm(#20054,29,#20052,0,"[[abc]&&[bcd]]")
|
|
hasLocation(#20054,#20053)
|
|
#20055=*
|
|
regexpterm(#20055,23,#20054,0,"[abc]")
|
|
#20056=@"loc,{#10000},1,3,1,7"
|
|
locations_default(#20056,#10000,1,3,1,7)
|
|
hasLocation(#20055,#20056)
|
|
#20057=*
|
|
regexpterm(#20057,14,#20055,0,"a")
|
|
#20058=@"loc,{#10000},1,4,1,4"
|
|
locations_default(#20058,#10000,1,4,1,4)
|
|
hasLocation(#20057,#20058)
|
|
regexp_const_value(#20057,"a")
|
|
#20059=*
|
|
regexpterm(#20059,14,#20055,1,"b")
|
|
#20060=@"loc,{#10000},1,5,1,5"
|
|
locations_default(#20060,#10000,1,5,1,5)
|
|
hasLocation(#20059,#20060)
|
|
regexp_const_value(#20059,"b")
|
|
#20061=*
|
|
regexpterm(#20061,14,#20055,2,"c")
|
|
#20062=@"loc,{#10000},1,6,1,6"
|
|
locations_default(#20062,#10000,1,6,1,6)
|
|
hasLocation(#20061,#20062)
|
|
regexp_const_value(#20061,"c")
|
|
#20063=*
|
|
regexpterm(#20063,23,#20054,1,"[bcd]")
|
|
#20064=@"loc,{#10000},1,10,1,14"
|
|
locations_default(#20064,#10000,1,10,1,14)
|
|
hasLocation(#20063,#20064)
|
|
#20065=*
|
|
regexpterm(#20065,14,#20063,0,"b")
|
|
#20066=@"loc,{#10000},1,11,1,11"
|
|
locations_default(#20066,#10000,1,11,1,11)
|
|
hasLocation(#20065,#20066)
|
|
regexp_const_value(#20065,"b")
|
|
#20067=*
|
|
regexpterm(#20067,14,#20063,1,"c")
|
|
#20068=@"loc,{#10000},1,12,1,12"
|
|
locations_default(#20068,#10000,1,12,1,12)
|
|
hasLocation(#20067,#20068)
|
|
regexp_const_value(#20067,"c")
|
|
#20069=*
|
|
regexpterm(#20069,14,#20063,2,"d")
|
|
#20070=@"loc,{#10000},1,13,1,13"
|
|
locations_default(#20070,#10000,1,13,1,13)
|
|
hasLocation(#20069,#20070)
|
|
regexp_const_value(#20069,"d")
|
|
#20071=*
|
|
stmts(#20071,2,#20001,1,"/abc&&bcd/v;")
|
|
#20072=@"loc,{#10000},2,1,2,12"
|
|
locations_default(#20072,#10000,2,1,2,12)
|
|
hasLocation(#20071,#20072)
|
|
stmt_containers(#20071,#20001)
|
|
#20073=*
|
|
exprs(#20073,5,#20071,0,"/abc&&bcd/v")
|
|
hasLocation(#20073,#20035)
|
|
enclosing_stmt(#20073,#20071)
|
|
expr_containers(#20073,#20001)
|
|
literals("/abc&&bcd/v","/abc&&bcd/v",#20073)
|
|
#20074=*
|
|
regexpterm(#20074,14,#20073,0,"abc&&bcd")
|
|
#20075=@"loc,{#10000},2,2,2,9"
|
|
locations_default(#20075,#10000,2,2,2,9)
|
|
hasLocation(#20074,#20075)
|
|
regexp_const_value(#20074,"abc&&bcd")
|
|
#20076=*
|
|
stmts(#20076,2,#20001,2,"/[abc]&&[bcd]/v;")
|
|
#20077=@"loc,{#10000},3,1,3,16"
|
|
locations_default(#20077,#10000,3,1,3,16)
|
|
hasLocation(#20076,#20077)
|
|
stmt_containers(#20076,#20001)
|
|
#20078=*
|
|
exprs(#20078,5,#20076,0,"/[abc]&&[bcd]/v")
|
|
hasLocation(#20078,#20039)
|
|
enclosing_stmt(#20078,#20076)
|
|
expr_containers(#20078,#20001)
|
|
literals("/[abc]&&[bcd]/v","/[abc]&&[bcd]/v",#20078)
|
|
#20079=*
|
|
regexpterm(#20079,1,#20078,0,"[abc]&&[bcd]")
|
|
#20080=@"loc,{#10000},3,2,3,13"
|
|
locations_default(#20080,#10000,3,2,3,13)
|
|
hasLocation(#20079,#20080)
|
|
#20081=*
|
|
regexpterm(#20081,23,#20079,0,"[abc]")
|
|
#20082=@"loc,{#10000},3,2,3,6"
|
|
locations_default(#20082,#10000,3,2,3,6)
|
|
hasLocation(#20081,#20082)
|
|
#20083=*
|
|
regexpterm(#20083,14,#20081,0,"a")
|
|
#20084=@"loc,{#10000},3,3,3,3"
|
|
locations_default(#20084,#10000,3,3,3,3)
|
|
hasLocation(#20083,#20084)
|
|
regexp_const_value(#20083,"a")
|
|
#20085=*
|
|
regexpterm(#20085,14,#20081,1,"b")
|
|
#20086=@"loc,{#10000},3,4,3,4"
|
|
locations_default(#20086,#10000,3,4,3,4)
|
|
hasLocation(#20085,#20086)
|
|
regexp_const_value(#20085,"b")
|
|
#20087=*
|
|
regexpterm(#20087,14,#20081,2,"c")
|
|
#20088=@"loc,{#10000},3,5,3,5"
|
|
locations_default(#20088,#10000,3,5,3,5)
|
|
hasLocation(#20087,#20088)
|
|
regexp_const_value(#20087,"c")
|
|
#20089=*
|
|
regexpterm(#20089,14,#20079,1,"&&")
|
|
#20090=@"loc,{#10000},3,7,3,8"
|
|
locations_default(#20090,#10000,3,7,3,8)
|
|
hasLocation(#20089,#20090)
|
|
regexp_const_value(#20089,"&&")
|
|
#20091=*
|
|
regexpterm(#20091,23,#20079,2,"[bcd]")
|
|
#20092=@"loc,{#10000},3,9,3,13"
|
|
locations_default(#20092,#10000,3,9,3,13)
|
|
hasLocation(#20091,#20092)
|
|
#20093=*
|
|
regexpterm(#20093,14,#20091,0,"b")
|
|
#20094=@"loc,{#10000},3,10,3,10"
|
|
locations_default(#20094,#10000,3,10,3,10)
|
|
hasLocation(#20093,#20094)
|
|
regexp_const_value(#20093,"b")
|
|
#20095=*
|
|
regexpterm(#20095,14,#20091,1,"c")
|
|
#20096=@"loc,{#10000},3,11,3,11"
|
|
locations_default(#20096,#10000,3,11,3,11)
|
|
hasLocation(#20095,#20096)
|
|
regexp_const_value(#20095,"c")
|
|
#20097=*
|
|
regexpterm(#20097,14,#20091,2,"d")
|
|
#20098=@"loc,{#10000},3,12,3,12"
|
|
locations_default(#20098,#10000,3,12,3,12)
|
|
hasLocation(#20097,#20098)
|
|
regexp_const_value(#20097,"d")
|
|
#20099=*
|
|
stmts(#20099,2,#20001,3,"/[[abc] ... [c]]/v;")
|
|
#20100=@"loc,{#10000},7,1,7,23"
|
|
locations_default(#20100,#10000,7,1,7,23)
|
|
hasLocation(#20099,#20100)
|
|
stmt_containers(#20099,#20001)
|
|
#20101=*
|
|
exprs(#20101,5,#20099,0,"/[[abc] ... &[c]]/v")
|
|
hasLocation(#20101,#20043)
|
|
enclosing_stmt(#20101,#20099)
|
|
expr_containers(#20101,#20001)
|
|
literals("/[[abc]&&[bcd]&&[c]]/v","/[[abc]&&[bcd]&&[c]]/v",#20101)
|
|
#20102=*
|
|
regexpterm(#20102,23,#20101,0,"[[abc]&&[bcd]&&[c]]")
|
|
#20103=@"loc,{#10000},7,2,7,20"
|
|
locations_default(#20103,#10000,7,2,7,20)
|
|
hasLocation(#20102,#20103)
|
|
#20104=*
|
|
regexpterm(#20104,29,#20102,0,"[[abc]&&[bcd]&&[c]]")
|
|
hasLocation(#20104,#20103)
|
|
#20105=*
|
|
regexpterm(#20105,23,#20104,0,"[abc]")
|
|
#20106=@"loc,{#10000},7,3,7,7"
|
|
locations_default(#20106,#10000,7,3,7,7)
|
|
hasLocation(#20105,#20106)
|
|
#20107=*
|
|
regexpterm(#20107,14,#20105,0,"a")
|
|
#20108=@"loc,{#10000},7,4,7,4"
|
|
locations_default(#20108,#10000,7,4,7,4)
|
|
hasLocation(#20107,#20108)
|
|
regexp_const_value(#20107,"a")
|
|
#20109=*
|
|
regexpterm(#20109,14,#20105,1,"b")
|
|
#20110=@"loc,{#10000},7,5,7,5"
|
|
locations_default(#20110,#10000,7,5,7,5)
|
|
hasLocation(#20109,#20110)
|
|
regexp_const_value(#20109,"b")
|
|
#20111=*
|
|
regexpterm(#20111,14,#20105,2,"c")
|
|
#20112=@"loc,{#10000},7,6,7,6"
|
|
locations_default(#20112,#10000,7,6,7,6)
|
|
hasLocation(#20111,#20112)
|
|
regexp_const_value(#20111,"c")
|
|
#20113=*
|
|
regexpterm(#20113,23,#20104,1,"[bcd]")
|
|
#20114=@"loc,{#10000},7,10,7,14"
|
|
locations_default(#20114,#10000,7,10,7,14)
|
|
hasLocation(#20113,#20114)
|
|
#20115=*
|
|
regexpterm(#20115,14,#20113,0,"b")
|
|
#20116=@"loc,{#10000},7,11,7,11"
|
|
locations_default(#20116,#10000,7,11,7,11)
|
|
hasLocation(#20115,#20116)
|
|
regexp_const_value(#20115,"b")
|
|
#20117=*
|
|
regexpterm(#20117,14,#20113,1,"c")
|
|
#20118=@"loc,{#10000},7,12,7,12"
|
|
locations_default(#20118,#10000,7,12,7,12)
|
|
hasLocation(#20117,#20118)
|
|
regexp_const_value(#20117,"c")
|
|
#20119=*
|
|
regexpterm(#20119,14,#20113,2,"d")
|
|
#20120=@"loc,{#10000},7,13,7,13"
|
|
locations_default(#20120,#10000,7,13,7,13)
|
|
hasLocation(#20119,#20120)
|
|
regexp_const_value(#20119,"d")
|
|
#20121=*
|
|
regexpterm(#20121,23,#20104,2,"[c]")
|
|
#20122=@"loc,{#10000},7,17,7,19"
|
|
locations_default(#20122,#10000,7,17,7,19)
|
|
hasLocation(#20121,#20122)
|
|
#20123=*
|
|
regexpterm(#20123,14,#20121,0,"c")
|
|
#20124=@"loc,{#10000},7,18,7,18"
|
|
locations_default(#20124,#10000,7,18,7,18)
|
|
hasLocation(#20123,#20124)
|
|
regexp_const_value(#20123,"c")
|
|
#20125=*
|
|
entry_cfg_node(#20125,#20001)
|
|
#20126=@"loc,{#10000},1,1,1,0"
|
|
locations_default(#20126,#10000,1,1,1,0)
|
|
hasLocation(#20125,#20126)
|
|
#20127=*
|
|
exit_cfg_node(#20127,#20001)
|
|
hasLocation(#20127,#20047)
|
|
successor(#20099,#20101)
|
|
successor(#20101,#20127)
|
|
successor(#20076,#20078)
|
|
successor(#20078,#20099)
|
|
successor(#20071,#20073)
|
|
successor(#20073,#20076)
|
|
successor(#20049,#20051)
|
|
successor(#20051,#20071)
|
|
successor(#20125,#20049)
|
|
numlines(#10000,7,4,7)
|
|
filetype(#10000,"javascript")
|