(self, gid, source)
| 101 | return gid < self.groups and self.groupwidths[gid] is not None |
| 102 | |
| 103 | def checklookbehindgroup(self, gid, source): |
| 104 | if self.lookbehindgroups is not None: |
| 105 | if not self.checkgroup(gid): |
| 106 | raise source.error('cannot refer to an open group') |
| 107 | if gid >= self.lookbehindgroups: |
| 108 | raise source.error('cannot refer to group defined in the same ' |
| 109 | 'lookbehind subpattern') |
| 110 | |
| 111 | class SubPattern: |
| 112 | # a subpattern, in intermediate form |
no test coverage detected