src/basilisp/lang/compiler/__init__.py
def _emit_ast_string(module: ast.AST) -> None:  # pragma: no cover
    """Emit the generated Python AST string either to standard out or to the
    *generated-python* dynamic Var for the current namespace. If the
    BASILISP_EMIT_GENERATED_PYTHON env var is not set True, this method is a
    no-op."""
    # TODO: eventually, this default should become "false" but during this
    #       period of heavy development, having it set to "true" by default
    #       is tremendously useful
    if os.getenv("BASILISP_EMIT_GENERATED_PYTHON", "true") != "true":
        return

    if runtime.print_generated_python():
        print(to_py_str(module))
    else:
        runtime.add_generated_python(to_py_str(module))
def _emit_ast_string(module: ast.AST) -> None:  # pragma: no cover
    """Emit the generated Python AST string either to standard out or to the
    *generated-python* dynamic Var for the current namespace. If the
    BASILISP_EMIT_GENERATED_PYTHON env var is not set True, this method is a
    no-op."""
    # TODO: eventually, this default should become "false" but during this
    #       period of heavy development, having it set to "true" by default
    #       is tremendously useful
    if os.getenv("BASILISP_EMIT_GENERATED_PYTHON", "true") != "true":
        return

    if runtime.print_generated_python():
        print(to_py_str(module))
    else:
        runtime.add_generated_python(to_py_str(module))
def _emit_ast_string ( module : ast . AST ) -> None : # pragma: no cover # TODO: eventually, this default should become "false" but during this #       period of heavy development, having it set to "true" by default #       is tremendously useful if os . getenv ( "BASILISP_EMIT_GENERATED_PYTHON" , "true" ) != "true" : return if runtime . print_generated_python ( ) : print ( to_py_str ( module ) ) else : runtime . add_generated_python ( to_py_str ( module ) )
Emit the generated Python AST string either to standard out or to the
    *generated-python* dynamic Var for the current namespace. If the
    BASILISP_EMIT_GENERATED_PYTHON env var is not set True, this method is a
    no-op.
Emit the generated Python AST string either to standard out or to the * generated - python * dynamic Var for the current namespace . If the BASILISP_EMIT_GENERATED_PYTHON env var is not set True this method is a no - op .