def get_tokens(self, locations=None, extent=None):
if locations is not None:<EOL><INDENT>extent = SourceRange(start=locations[<NUM_LIT:0>], end=locations[<NUM_LIT:1>])<EOL><DEDENT>return TokenGroup.get_tokens(self, extent)<EOL>
Obtain tokens in this translation unit.

        This is a generator for Token instances. The caller specifies a range
        of source code to obtain tokens for. The range can be specified as a
        2-tuple of SourceLocation or as a SourceRange. If both are defined,
        behavior is undefined.