src/basilisp/lang/compiler/parser.py
def _loc(form: Union[LispForm, ISeq]) -> Optional[Tuple[int, int]]:
    """Fetch the location of the form in the original filename from the
    input form, if it has metadata."""
    try:
        meta = form.meta  # type: ignore
        line = meta.get(reader.READER_LINE_KW)  # type: ignore
        col = meta.get(reader.READER_COL_KW)  # type: ignore
    except AttributeError:
        return None
    else:
        assert isinstance(line, int) and isinstance(col, int)
        return line, col
def _loc(form: Union[LispForm, ISeq]) -> Optional[Tuple[int, int]]:
    try:
        meta = form.meta  # type: ignore
        line = meta.get(reader.READER_LINE_KW)  # type: ignore
        col = meta.get(reader.READER_COL_KW)  # type: ignore
    except AttributeError:
        return None
    else:
        assert isinstance(line, int) and isinstance(col, int)
        return line, col
def _loc ( form : Union [ LispForm , ISeq ] ) -> Optional [ Tuple [ int , int ] ] : try : meta = form . meta # type: ignore line = meta . get ( reader . READER_LINE_KW ) # type: ignore col = meta . get ( reader . READER_COL_KW ) # type: ignore except AttributeError : return None else : assert isinstance ( line , int ) and isinstance ( col , int ) return line , col
Fetch the location of the form in the original filename from the
    input form, if it has metadata.
Fetch the location of the form in the original filename from the input form if it has metadata .