Source code for hdlConvertorAst.hdlAst.utils



[docs] class CodePosition(object): __slots__ = [ "file_name", "start_line", "start_column", "stop_line", "stop_column", ]
[docs] def __init__(self): self.file_name = None self.start_line = None self.start_column = None self.stop_line = None self.stop_column = None
def __repr__(self): return "<%s %r:%r to %r:%r>" % (self.__class__.__name__, self.file_name, self.start_line, self.start_column, self.stop_line, self.stop_column)