diff --git a/javascript/extractor/tests/yaml/output/trap/emoji_buffer_boundary.yml.trap b/javascript/extractor/tests/yaml/output/trap/emoji_buffer_boundary.yml.trap index 936088d8c09..19c5eadb022 100644 --- a/javascript/extractor/tests/yaml/output/trap/emoji_buffer_boundary.yml.trap +++ b/javascript/extractor/tests/yaml/output/trap/emoji_buffer_boundary.yml.trap @@ -7,21 +7,26 @@ containerparent(#10001,#10000) locations_default(#10002,#10000,0,0,0,0) hasLocation(#10000,#10002) #20000=* -#20001=* -yaml_scalars(#20001,0,"key") -yaml(#20001,0,#20000,1,"tag:yaml.org,2002:str","key") -#20002=@"loc,{#10000},2,1,2,3" -locations_default(#20002,#10000,2,1,2,3) -yaml_locations(#20001,#20002) +yaml_comments(#20000," xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","# xxxxx ... xxxxxxx") +#20001=@"loc,{#10000},1,1,1,1017" +locations_default(#20001,#10000,1,1,1,1017) +yaml_locations(#20000,#20001) +#20002=* #20003=* -yaml_scalars(#20003,0,"🚀") -yaml(#20003,0,#20000,-1,"tag:yaml.org,2002:str","\u1f680\ude80") -#20004=@"loc,{#10000},2,6,2,6" -locations_default(#20004,#10000,2,6,2,6) +yaml_scalars(#20003,0,"key") +yaml(#20003,0,#20002,1,"tag:yaml.org,2002:str","key") +#20004=@"loc,{#10000},2,1,2,3" +locations_default(#20004,#10000,2,1,2,3) yaml_locations(#20003,#20004) -yaml(#20000,1,#10000,0,"tag:yaml.org,2002:map","key: \u1f680\ude80") -#20005=@"loc,{#10000},2,1,2,8" -locations_default(#20005,#10000,2,1,2,8) -yaml_locations(#20000,#20005) +#20005=* +yaml_scalars(#20005,0,"🚀") +yaml(#20005,0,#20002,-1,"tag:yaml.org,2002:str","\u1f680\ude80") +#20006=@"loc,{#10000},2,6,2,6" +locations_default(#20006,#10000,2,6,2,6) +yaml_locations(#20005,#20006) +yaml(#20002,1,#10000,0,"tag:yaml.org,2002:map","key: \u1f680\ude80") +#20007=@"loc,{#10000},2,1,2,8" +locations_default(#20007,#10000,2,1,2,8) +yaml_locations(#20002,#20007) numlines(#10000,2,0,0) filetype(#10000,"yaml") diff --git a/javascript/extractor/tests/yaml/output/trap/orig.yml.trap b/javascript/extractor/tests/yaml/output/trap/orig.yml.trap index 101040e061b..fe50e1540f5 100644 --- a/javascript/extractor/tests/yaml/output/trap/orig.yml.trap +++ b/javascript/extractor/tests/yaml/output/trap/orig.yml.trap @@ -87,130 +87,145 @@ yaml(#20028,0,#20017,-3,"tag:yaml.org,2002:str","xxxxxx") #20029=@"loc,{#10000},10,13,10,18" locations_default(#20029,#10000,10,13,10,18) yaml_locations(#20028,#20029) +#20030=* +yaml_comments(#20030," - xx: xxx","# - xx: xxx") +#20031=@"loc,{#10000},11,1,11,14" +locations_default(#20031,#10000,11,1,11,14) +yaml_locations(#20030,#20031) +#20032=* +yaml_comments(#20032," xxx_xxxxx: xxxxxx.x","# ... xxxxx.x") +#20033=@"loc,{#10000},12,1,12,26" +locations_default(#20033,#10000,12,1,12,26) +yaml_locations(#20032,#20033) yaml(#20017,1,#20016,0,"tag:yaml.org,2002:map","xx: xxxxx") -#20030=@"loc,{#10000},8,7,12,27" -locations_default(#20030,#10000,8,7,12,27) -yaml_locations(#20017,#20030) +#20034=@"loc,{#10000},8,7,12,27" +locations_default(#20034,#10000,8,7,12,27) +yaml_locations(#20017,#20034) yaml(#20016,2,#20013,-1,"tag:yaml.org,2002:seq","- xx: xxxxx") -#20031=@"loc,{#10000},8,5,12,27" -locations_default(#20031,#10000,8,5,12,27) -yaml_locations(#20016,#20031) +#20035=@"loc,{#10000},8,5,12,27" +locations_default(#20035,#10000,8,5,12,27) +yaml_locations(#20016,#20035) yaml(#20013,1,#20000,-3,"tag:yaml.org,2002:map","xxxxxxx:") -#20032=@"loc,{#10000},7,3,12,27" -locations_default(#20032,#10000,7,3,12,27) -yaml_locations(#20013,#20032) -#20033=* -yaml_scalars(#20033,0,"xxxxx") -yaml(#20033,0,#20000,4,"tag:yaml.org,2002:str","xxxxx") -#20034=@"loc,{#10000},14,1,14,5" -locations_default(#20034,#10000,14,1,14,5) -yaml_locations(#20033,#20034) -#20035=* -#20036=* -yaml_scalars(#20036,0,"xxxxxxxxxxx") -yaml(#20036,0,#20035,1,"tag:yaml.org,2002:str","xxxxxxxxxxx") -#20037=@"loc,{#10000},15,3,15,13" -locations_default(#20037,#10000,15,3,15,13) -yaml_locations(#20036,#20037) -#20038=* +#20036=@"loc,{#10000},7,3,12,27" +locations_default(#20036,#10000,7,3,12,27) +yaml_locations(#20013,#20036) +#20037=* +yaml_scalars(#20037,0,"xxxxx") +yaml(#20037,0,#20000,4,"tag:yaml.org,2002:str","xxxxx") +#20038=@"loc,{#10000},14,1,14,5" +locations_default(#20038,#10000,14,1,14,5) +yaml_locations(#20037,#20038) #20039=* -yaml_scalars(#20039,0,"xxxx_xxxxxxx") -yaml(#20039,0,#20038,0,"tag:yaml.org,2002:str","xxxx_xxxxxxx") -#20040=@"loc,{#10000},16,7,16,18" -locations_default(#20040,#10000,16,7,16,18) -yaml_locations(#20039,#20040) -yaml(#20038,2,#20035,-1,"tag:yaml.org,2002:seq","- xxxx_xxxxxxx") -#20041=@"loc,{#10000},16,5,16,19" -locations_default(#20041,#10000,16,5,16,19) -yaml_locations(#20038,#20041) -yaml(#20035,1,#20000,-4,"tag:yaml.org,2002:map","xxxxxxxxxxx:") -#20042=@"loc,{#10000},15,3,16,19" -locations_default(#20042,#10000,15,3,16,19) -yaml_locations(#20035,#20042) +#20040=* +yaml_scalars(#20040,0,"xxxxxxxxxxx") +yaml(#20040,0,#20039,1,"tag:yaml.org,2002:str","xxxxxxxxxxx") +#20041=@"loc,{#10000},15,3,15,13" +locations_default(#20041,#10000,15,3,15,13) +yaml_locations(#20040,#20041) +#20042=* #20043=* -yaml_scalars(#20043,0,"xxxxxx") -yaml(#20043,0,#20000,5,"tag:yaml.org,2002:str","xxxxxx") -#20044=@"loc,{#10000},18,1,18,6" -locations_default(#20044,#10000,18,1,18,6) +yaml_scalars(#20043,0,"xxxx_xxxxxxx") +yaml(#20043,0,#20042,0,"tag:yaml.org,2002:str","xxxx_xxxxxxx") +#20044=@"loc,{#10000},16,7,16,18" +locations_default(#20044,#10000,16,7,16,18) yaml_locations(#20043,#20044) -#20045=* -#20046=* -yaml_scalars(#20046,0,"xxxx_xxxxxxx") -yaml(#20046,0,#20045,1,"tag:yaml.org,2002:str","xxxx_xxxxxxx") -#20047=@"loc,{#10000},19,3,19,14" -locations_default(#20047,#10000,19,3,19,14) -yaml_locations(#20046,#20047) -#20048=* -yaml_scalars(#20048,0,"xxxx") -yaml(#20048,0,#20045,-1,"tag:yaml.org,2002:str","xxxx") -#20049=@"loc,{#10000},19,17,19,20" -locations_default(#20049,#10000,19,17,19,20) -yaml_locations(#20048,#20049) +yaml(#20042,2,#20039,-1,"tag:yaml.org,2002:seq","- xxxx_xxxxxxx") +#20045=@"loc,{#10000},16,5,16,19" +locations_default(#20045,#10000,16,5,16,19) +yaml_locations(#20042,#20045) +yaml(#20039,1,#20000,-4,"tag:yaml.org,2002:map","xxxxxxxxxxx:") +#20046=@"loc,{#10000},15,3,16,19" +locations_default(#20046,#10000,15,3,16,19) +yaml_locations(#20039,#20046) +#20047=* +yaml_scalars(#20047,0,"xxxxxx") +yaml(#20047,0,#20000,5,"tag:yaml.org,2002:str","xxxxxx") +#20048=@"loc,{#10000},18,1,18,6" +locations_default(#20048,#10000,18,1,18,6) +yaml_locations(#20047,#20048) +#20049=* #20050=* -yaml_scalars(#20050,0,"xxxxxxxx") -yaml(#20050,0,#20045,2,"tag:yaml.org,2002:str","xxxxxxxx") -#20051=@"loc,{#10000},20,3,20,10" -locations_default(#20051,#10000,20,3,20,10) +yaml_scalars(#20050,0,"xxxx_xxxxxxx") +yaml(#20050,0,#20049,1,"tag:yaml.org,2002:str","xxxx_xxxxxxx") +#20051=@"loc,{#10000},19,3,19,14" +locations_default(#20051,#10000,19,3,19,14) yaml_locations(#20050,#20051) #20052=* -yaml_scalars(#20052,0,"xxxxxx") -yaml(#20052,0,#20045,-2,"tag:yaml.org,2002:str","xxxxxx") -#20053=@"loc,{#10000},20,13,20,18" -locations_default(#20053,#10000,20,13,20,18) +yaml_scalars(#20052,0,"xxxx") +yaml(#20052,0,#20049,-1,"tag:yaml.org,2002:str","xxxx") +#20053=@"loc,{#10000},19,17,19,20" +locations_default(#20053,#10000,19,17,19,20) yaml_locations(#20052,#20053) #20054=* -yaml_scalars(#20054,0,"xxxxxx") -yaml(#20054,0,#20045,3,"tag:yaml.org,2002:str","xxxxxx") -#20055=@"loc,{#10000},21,3,21,8" -locations_default(#20055,#10000,21,3,21,8) +yaml_scalars(#20054,0,"xxxxxxxx") +yaml(#20054,0,#20049,2,"tag:yaml.org,2002:str","xxxxxxxx") +#20055=@"loc,{#10000},20,3,20,10" +locations_default(#20055,#10000,20,3,20,10) yaml_locations(#20054,#20055) #20056=* -yaml_scalars(#20056,0,"xxx xxx xxxx") -yaml(#20056,0,#20045,-3,"tag:yaml.org,2002:str","xxx xxx xxxx") -#20057=@"loc,{#10000},21,11,21,22" -locations_default(#20057,#10000,21,11,21,22) +yaml_scalars(#20056,0,"xxxxxx") +yaml(#20056,0,#20049,-2,"tag:yaml.org,2002:str","xxxxxx") +#20057=@"loc,{#10000},20,13,20,18" +locations_default(#20057,#10000,20,13,20,18) yaml_locations(#20056,#20057) -yaml(#20045,1,#20000,-5,"tag:yaml.org,2002:map","xxxx_xxxxxxx: xxxx") -#20058=@"loc,{#10000},19,3,21,23" -locations_default(#20058,#10000,19,3,21,23) -yaml_locations(#20045,#20058) -#20059=* -yaml_scalars(#20059,0,"xxx") -yaml(#20059,0,#20000,6,"tag:yaml.org,2002:str","xxx") -#20060=@"loc,{#10000},23,1,23,3" -locations_default(#20060,#10000,23,1,23,3) -yaml_locations(#20059,#20060) -#20061=* -#20062=* -yaml_scalars(#20062,0,"xxxxxx") -yaml(#20062,0,#20061,1,"tag:yaml.org,2002:str","xxxxxx") -#20063=@"loc,{#10000},24,3,24,8" -locations_default(#20063,#10000,24,3,24,8) -yaml_locations(#20062,#20063) -#20064=* +#20058=* +yaml_scalars(#20058,0,"xxxxxx") +yaml(#20058,0,#20049,3,"tag:yaml.org,2002:str","xxxxxx") +#20059=@"loc,{#10000},21,3,21,8" +locations_default(#20059,#10000,21,3,21,8) +yaml_locations(#20058,#20059) +#20060=* +yaml_scalars(#20060,0,"xxx xxx xxxx") +yaml(#20060,0,#20049,-3,"tag:yaml.org,2002:str","xxx xxx xxxx") +#20061=@"loc,{#10000},21,11,21,22" +locations_default(#20061,#10000,21,11,21,22) +yaml_locations(#20060,#20061) +yaml(#20049,1,#20000,-5,"tag:yaml.org,2002:map","xxxx_xxxxxxx: xxxx") +#20062=@"loc,{#10000},19,3,21,23" +locations_default(#20062,#10000,19,3,21,23) +yaml_locations(#20049,#20062) +#20063=* +yaml_scalars(#20063,0,"xxx") +yaml(#20063,0,#20000,6,"tag:yaml.org,2002:str","xxx") +#20064=@"loc,{#10000},23,1,23,3" +locations_default(#20064,#10000,23,1,23,3) +yaml_locations(#20063,#20064) #20065=* -yaml_scalars(#20065,0,"xxxxxx") -yaml(#20065,0,#20064,1,"tag:yaml.org,2002:str","xxxxxx") -#20066=@"loc,{#10000},26,5,26,10" -locations_default(#20066,#10000,26,5,26,10) -yaml_locations(#20065,#20066) -#20067=* -yaml_scalars(#20067,0,"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxx/xxxxxx/xxxxxxxxxxxxxxxxxxx/xxxxxxxxxxx/xxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxx/xxxxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxxxx=") -yaml(#20067,0,#20064,-1,"tag:yaml.org,2002:str","xxxxxxx ... xxxxxx=") -#20068=@"loc,{#10000},26,13,26,696" -locations_default(#20068,#10000,26,13,26,696) -yaml_locations(#20067,#20068) -yaml(#20064,1,#20061,-1,"tag:yaml.org,2002:map","xxxxxx: ... xxxxxx=") -#20069=@"loc,{#10000},26,5,26,697" -locations_default(#20069,#10000,26,5,26,697) -yaml_locations(#20064,#20069) -yaml(#20061,1,#20000,-6,"tag:yaml.org,2002:map","xxxxxx:") -#20070=@"loc,{#10000},24,3,26,697" -locations_default(#20070,#10000,24,3,26,697) -yaml_locations(#20061,#20070) +#20066=* +yaml_scalars(#20066,0,"xxxxxx") +yaml(#20066,0,#20065,1,"tag:yaml.org,2002:str","xxxxxx") +#20067=@"loc,{#10000},24,3,24,8" +locations_default(#20067,#10000,24,3,24,8) +yaml_locations(#20066,#20067) +#20068=* +#20069=* +yaml_comments(#20069," xx_xxxxx","# xx_xxxxx") +#20070=@"loc,{#10000},25,5,25,14" +locations_default(#20070,#10000,25,5,25,14) +yaml_locations(#20069,#20070) +#20071=* +yaml_scalars(#20071,0,"xxxxxx") +yaml(#20071,0,#20068,1,"tag:yaml.org,2002:str","xxxxxx") +#20072=@"loc,{#10000},26,5,26,10" +locations_default(#20072,#10000,26,5,26,10) +yaml_locations(#20071,#20072) +#20073=* +yaml_scalars(#20073,0,"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxx/xxxxxx/xxxxxxxxxxxxxxxxxxx/xxxxxxxxxxx/xxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxx/xxxxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxxxx=") +yaml(#20073,0,#20068,-1,"tag:yaml.org,2002:str","xxxxxxx ... xxxxxx=") +#20074=@"loc,{#10000},26,13,26,696" +locations_default(#20074,#10000,26,13,26,696) +yaml_locations(#20073,#20074) +yaml(#20068,1,#20065,-1,"tag:yaml.org,2002:map","xxxxxx: ... xxxxxx=") +#20075=@"loc,{#10000},26,5,26,697" +locations_default(#20075,#10000,26,5,26,697) +yaml_locations(#20068,#20075) +yaml(#20065,1,#20000,-6,"tag:yaml.org,2002:map","xxxxxx:") +#20076=@"loc,{#10000},24,3,26,697" +locations_default(#20076,#10000,24,3,26,697) +yaml_locations(#20065,#20076) yaml(#20000,1,#10000,0,"tag:yaml.org,2002:map","xxxxxxxx: xxxx_xx") -#20071=@"loc,{#10000},1,1,26,697" -locations_default(#20071,#10000,1,1,26,697) -yaml_locations(#20000,#20071) +#20077=@"loc,{#10000},1,1,26,697" +locations_default(#20077,#10000,1,1,26,697) +yaml_locations(#20000,#20077) numlines(#10000,26,0,0) filetype(#10000,"yaml")