'Returns the line of code where this object was defined.
:param before: Add n lines before the current line to the output.
:param after: Add n lines after the current line to the output.
:return str: Returns the line(s) of code or an empty string if it\'s a
builtin.'

def get_line_code(self, before=0, after=0):

    if self.in_builtin_module():
        return ''
    path = self._name.get_root_context().py__file__()
    lines = parser_cache[path].lines
    line_nr = self._name.start_pos[0]
    start_line_nr = (line_nr - before)
    return ''.join(lines[start_line_nr:((line_nr + after) + 1)])
