def get_location(self, filename, position):
f = self.get_file(filename)<EOL>if isinstance(position, int):<EOL><INDENT>return SourceLocation.from_offset(self, f, position)<EOL><DEDENT>return SourceLocation.from_position(self, f, position[<NUM_LIT:0>], position[<NUM_LIT:1>])<EOL>
Obtain a SourceLocation for a file in this translation unit.

        The position can be specified by passing:

          - Integer file offset. Initial file offset is 0.
          - 2-tuple of (line number, column number). Initial file position is
            (0, 0)