def _get_fields(self, attr):
ret = set()<EOL>if "<STR_LIT>" in self.pieces:<EOL><INDENT>return ret<EOL><DEDENT>for i in range(<NUM_LIT:0>, len(self.pieces), <NUM_LIT:2>):<EOL><INDENT>const = self.pieces[i]<EOL>field = getattr(const, attr)<EOL>if field is not None:<EOL><INDENT>ret.add(field)<EOL><DEDENT><DEDENT>return ret<EOL>
Get the hash/range fields of all joined constraints