Skip to content

Commit 077aa05

Browse files
authored
Merge pull request github#6448 from asgerf/js/handlebars-extraction-preliminary
JS: Update locations in Angular2 test
2 parents 5ba9347 + 88500a3 commit 077aa05

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

javascript/extractor/tests/ng-templates/output/trap/component.js.trap

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -542,53 +542,53 @@ toplevel_parent_xml_node(#20139,#20159)
542542
#20160=*
543543
xmlChars(#20160,"
544544
",#10000,0,0,#10000)
545-
#20161=@"loc,{#10000},4,13,5,2"
546-
locations_default(#20161,#10000,4,13,5,2)
545+
#20161=@"loc,{#10000},4,13,5,1"
546+
locations_default(#20161,#10000,4,13,5,1)
547547
xmllocations(#20160,#20161)
548548
#20162=*
549549
xmlChars(#20162,"
550550
",#10000,2,0,#10000)
551-
#20163=@"loc,{#10000},5,29,6,2"
552-
locations_default(#20163,#10000,5,29,6,2)
551+
#20163=@"loc,{#10000},5,29,6,1"
552+
locations_default(#20163,#10000,5,29,6,1)
553553
xmllocations(#20162,#20163)
554554
#20164=*
555555
xmlChars(#20164,"
556556
",#10000,4,0,#10000)
557-
#20165=@"loc,{#10000},6,23,7,2"
558-
locations_default(#20165,#10000,6,23,7,2)
557+
#20165=@"loc,{#10000},6,23,7,1"
558+
locations_default(#20165,#10000,6,23,7,1)
559559
xmllocations(#20164,#20165)
560560
#20166=*
561561
xmlChars(#20166,"
562562
",#10000,6,0,#10000)
563-
#20167=@"loc,{#10000},7,27,8,2"
564-
locations_default(#20167,#10000,7,27,8,2)
563+
#20167=@"loc,{#10000},7,27,8,1"
564+
locations_default(#20167,#10000,7,27,8,1)
565565
xmllocations(#20166,#20167)
566566
#20168=*
567567
xmlElements(#20168,"foo",#10000,5,#10000)
568-
#20169=@"loc,{#10000},7,2,7,27"
569-
locations_default(#20169,#10000,7,2,7,27)
568+
#20169=@"loc,{#10000},7,2,7,26"
569+
locations_default(#20169,#10000,7,2,7,26)
570570
xmllocations(#20168,#20169)
571571
xmlAttrs(#20159,#20168,"[baz]","expr?.bar",0,#10000)
572-
#20170=@"loc,{#10000},7,7,7,24"
573-
locations_default(#20170,#10000,7,7,7,24)
572+
#20170=@"loc,{#10000},7,7,7,23"
573+
locations_default(#20170,#10000,7,7,7,23)
574574
xmllocations(#20159,#20170)
575575
#20171=*
576576
xmlElements(#20171,"foo",#10000,3,#10000)
577-
#20172=@"loc,{#10000},6,2,6,23"
578-
locations_default(#20172,#10000,6,2,6,23)
577+
#20172=@"loc,{#10000},6,2,6,22"
578+
locations_default(#20172,#10000,6,2,6,22)
579579
xmllocations(#20171,#20172)
580580
xmlAttrs(#20138,#20171,"[baz]","expr!",0,#10000)
581-
#20173=@"loc,{#10000},6,7,6,20"
582-
locations_default(#20173,#10000,6,7,6,20)
581+
#20173=@"loc,{#10000},6,7,6,19"
582+
locations_default(#20173,#10000,6,7,6,19)
583583
xmllocations(#20138,#20173)
584584
#20174=*
585585
xmlElements(#20174,"foo",#10000,1,#10000)
586-
#20175=@"loc,{#10000},5,2,5,29"
587-
locations_default(#20175,#10000,5,2,5,29)
586+
#20175=@"loc,{#10000},5,2,5,28"
587+
locations_default(#20175,#10000,5,2,5,28)
588588
xmllocations(#20174,#20175)
589589
xmlAttrs(#20120,#20174,"[prop]","expr + expr",0,#10000)
590-
#20176=@"loc,{#10000},5,7,5,27"
591-
locations_default(#20176,#10000,5,7,5,27)
590+
#20176=@"loc,{#10000},5,7,5,26"
591+
locations_default(#20176,#10000,5,7,5,26)
592592
xmllocations(#20120,#20176)
593593
xml_element_parent_expression(#20174,#20097,0)
594594
xml_element_parent_expression(#20171,#20097,1)

javascript/ql/test/library-tests/frameworks/Angular2/test.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ taintFlow
3333
| source.component.ts:14:22:14:29 | source() | source.component.ts:20:48:20:48 | x |
3434
| source.component.ts:15:33:15:40 | source() | sink.component.ts:22:48:22:57 | this.sink1 |
3535
testAttrSourceLocation
36-
| inline.component.ts:8:43:8:61 | [testAttr]=taint | inline.component.ts:8:55:8:59 | <toplevel> |
36+
| inline.component.ts:8:43:8:60 | [testAttr]=taint | inline.component.ts:8:55:8:59 | <toplevel> |

0 commit comments

Comments
 (0)