src/basilisp/lang/compiler/generator.py
def _ast_with_loc(
    py_ast: GeneratedPyAST, env: NodeEnv, include_dependencies: bool = False
) -> GeneratedPyAST:
    """Hydrate Generated Python AST nodes with line numbers and column offsets
    if they exist in the node environment."""
    if env.line is not None:
        py_ast.node.lineno = env.line

        if include_dependencies:
            for dep in py_ast.dependencies:
                dep.lineno = env.line

    if env.col is not None:
        py_ast.node.col_offset = env.col

        if include_dependencies:
            for dep in py_ast.dependencies:
                dep.col_offset = env.col

    return py_ast
def _ast_with_loc(
    py_ast: GeneratedPyAST, env: NodeEnv, include_dependencies: bool = False
) -> GeneratedPyAST:
    if env.line is not None:
        py_ast.node.lineno = env.line

        if include_dependencies:
            for dep in py_ast.dependencies:
                dep.lineno = env.line

    if env.col is not None:
        py_ast.node.col_offset = env.col

        if include_dependencies:
            for dep in py_ast.dependencies:
                dep.col_offset = env.col

    return py_ast
def _ast_with_loc ( py_ast : GeneratedPyAST , env : NodeEnv , include_dependencies : bool = False ) -> GeneratedPyAST : if env . line is not None : py_ast . node . lineno = env . line if include_dependencies : for dep in py_ast . dependencies : dep . lineno = env . line if env . col is not None : py_ast . node . col_offset = env . col if include_dependencies : for dep in py_ast . dependencies : dep . col_offset = env . col return py_ast
Hydrate Generated Python AST nodes with line numbers and column offsets
    if they exist in the node environment.
Hydrate Generated Python AST nodes with line numbers and column offsets if they exist in the node environment .