Lines Matching refs:definition
25 # Extract the duplicate resource definitions, ignoring the last definition
39 for definition in duplicates:
40 print "{0}: removing duplicate resource '{1}'".format(xml_path, definition.name)
42 if last_line_no < definition.start[0]:
43 # The next definition is on a new line, so write what we have
53 for line_to_copy in xrange(last_line_no, definition.start[0]):
58 # definition.
59 last_line_no = definition.start[0]
60 current_line += input_lines[last_line_no][last_col_no:definition.start[1]]
61 last_line_no = definition.end[0]
62 last_col_no = definition.end[1]
80 """A small struct to maintain the positions of a Duplicate resource definition."""