src/basilisp/lang/compiler/generator.py
def _with_meta_to_py_ast(
    ctx: GeneratorContext, node: WithMeta, **kwargs
) -> GeneratedPyAST:
    """Generate a Python AST node for Python interop method calls."""
    assert node.op == NodeOp.WITH_META

    handle_expr = _WITH_META_EXPR_HANDLER.get(node.expr.op)
    assert (
        handle_expr is not None
    ), "No expression handler for with-meta child node type"
    return handle_expr(ctx, node.expr, meta_node=node.meta, **kwargs)
def _with_meta_to_py_ast(
    ctx: GeneratorContext, node: WithMeta, **kwargs
) -> GeneratedPyAST:
    """Generate a Python AST node for Python interop method calls."""
    assert node.op == NodeOp.WITH_META

    handle_expr = _WITH_META_EXPR_HANDLER.get(node.expr.op)
    assert (
        handle_expr is not None
    ), "No expression handler for with-meta child node type"
    return handle_expr(ctx, node.expr, meta_node=node.meta, **kwargs)
def _with_meta_to_py_ast ( ctx : GeneratorContext , node : WithMeta , * * kwargs ) -> GeneratedPyAST : assert node . op == NodeOp . WITH_META handle_expr = _WITH_META_EXPR_HANDLER . get ( node . expr . op ) assert ( handle_expr is not None ) , "No expression handler for with-meta child node type" return handle_expr ( ctx , node . expr , meta_node = node . meta , * * kwargs )
Generate a Python AST node for Python interop method calls.
Generate a Python AST node for Python interop method calls .