'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)'

def get_location(self, filename, position):

    f = self.get_file(filename)
    if isinstance(position, int):
        return SourceLocation.from_offset(self, f, position)
    return SourceLocation.from_position(self, f, position[0], position[1])
