Home | History | Annotate | Download | only in cindex

Lines Matching refs:offset

10 def assert_location(loc, line, column, offset):
13 assert loc.offset == offset
23 assert_location(one.location,line=1,column=5,offset=4)
24 assert_location(two.location,line=2,column=5,offset=13)
34 assert_location(one.location,line=2,column=5,offset=5)
35 assert_location(two.location,line=3,column=5,offset=14)
42 assert_location(one.location,line=1,column=6,offset=5)
43 assert_location(two.location,line=2,column=5,offset=14)
77 assert_location(one.extent.start,line=1,column=1,offset=0)
78 assert_location(one.extent.end,line=1,column=8,offset=7)
79 assert baseInput[one.extent.start.offset:one.extent.end.offset] == "int one"
81 assert_location(two.extent.start,line=2,column=1,offset=9)
82 assert_location(two.extent.end,line=2,column=8,offset=16)
83 assert baseInput[two.extent.start.offset:two.extent.end.offset] == "int two"