Rename the parameter for the end-of-list test function from end_of_list to end_of_list_test.

llvm-svn: 136016
This commit is contained in:
Johnny Chen
2011-07-25 23:44:48 +00:00
parent a4bc3a7091
commit 882b28b7bf

View File

@@ -92,7 +92,7 @@ linked_list_iter_def = '''
# ==================================================
# Iterator for lldb.SBValue treated as a linked list
# ==================================================
def linked_list_iter(self, next_item_name, end_of_list):
def linked_list_iter(self, next_item_name, end_of_list_test):
"""Generator adaptor to support iteration for SBValue as a linked list.
linked_list_iter() is a special purpose iterator to treat the SBValue as
@@ -136,7 +136,7 @@ linked_list_iter_def = '''
yield item
# Prepare for the next iteration.
item = item.GetChildMemberWithName(next_item_name)
if end_of_list(item):
if end_of_list_test(item):
break
except:
# Exception occurred. Stop the generator.