Lines Matching refs:item
870 """This represents an "item" in the language of "Tree Automatons." This
879 # These are the indices of patterns for which this item is the root node.
881 # This the set of opcodes for parents of this item. Used to speed up
893 # This is a map from (opcode, sources) to item.
903 item = self.items.setdefault((opcode, children),
906 self.items[opcode, (children[1], children[0]) + children[2:]] = item
908 item.patterns.append(pattern)
909 return item
923 # item is equivalent to nu in "Tree Automatons."
941 item = get_item(opcode, children, pattern)
944 return item
996 # assigned to a unique item, so we don't have to worry about
1000 patterns = list(sorted(p for item in state for p in item.patterns))
1016 filtered = frozenset(item for item in state if \
1017 op in item.parent_ops)