src/basilisp/lang/compiler/generator.py
def _invoke_to_py_ast(ctx: GeneratorContext, node: Invoke) -> GeneratedPyAST:
    """Return a Python AST Node for a Basilisp function invocation."""
    assert node.op == NodeOp.INVOKE

    fn_ast = gen_py_ast(ctx, node.fn)
    args_deps, args_nodes = _collection_ast(ctx, node.args)

    return GeneratedPyAST(
        node=ast.Call(func=fn_ast.node, args=list(args_nodes), keywords=[]),
        dependencies=list(chain(fn_ast.dependencies, args_deps)),
    )
def _invoke_to_py_ast(ctx: GeneratorContext, node: Invoke) -> GeneratedPyAST:
    assert node.op == NodeOp.INVOKE

    fn_ast = gen_py_ast(ctx, node.fn)
    args_deps, args_nodes = _collection_ast(ctx, node.args)

    return GeneratedPyAST(
        node=ast.Call(func=fn_ast.node, args=list(args_nodes), keywords=[]),
        dependencies=list(chain(fn_ast.dependencies, args_deps)),
    )
def _invoke_to_py_ast ( ctx : GeneratorContext , node : Invoke ) -> GeneratedPyAST : assert node . op == NodeOp . INVOKE fn_ast = gen_py_ast ( ctx , node . fn ) args_deps , args_nodes = _collection_ast ( ctx , node . args ) return GeneratedPyAST ( node = ast . Call ( func = fn_ast . node , args = list ( args_nodes ) , keywords = [ ] ) , dependencies = list ( chain ( fn_ast . dependencies , args_deps ) ) , )
Return a Python AST Node for a Basilisp function invocation.
Return a Python AST Node for a Basilisp function invocation .