def consume_seqreg(self, seqreg):
if not isinstance(seqreg, tag.directive.Directive) orseqreg.type != '<STR_LIT>':<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if seqreg.seqid in self.declared_regions:<EOL><INDENT>msg = '<STR_LIT>'.format(seqreg.seqid)<EOL>raise ValueError(msg)<EOL><DEDENT>self.declared_regions[seqreg.seqid] = seqreg.range.copy()<EOL>
Load a :code:`##sequence-region` directive into memory.