/// This is the entry point from hh_single_compile
This is the entry point from hh_single_compile
This is the entry point from hh_single_compile
pub fn emit_program<'a, 'arena, 'decl>(
    alloc: &'arena bumpalo::Bump,
    emitter: &mut Emitter<'arena, 'decl>,
    flags: FromAstFlags,
    namespace: RcOc<namespace_env::Env>,
    tast: &'a ast::Program,
) -> Result<HhasProgram<'arena>> {
    let result = emit_program_(alloc, emitter, flags, namespace, tast);
    match result {
        Err(Error::IncludeTimeFatalException(op, pos, msg)) => {
            emit_fatal_program(alloc, op, &pos, msg)
        }
        _ => result,
    }
}
pub fn emit_program < ' a , ' arena , ' decl > ( alloc : & ' arena bumpalo :: Bump , emitter : & mut Emitter < ' arena , ' decl > , flags : FromAstFlags , namespace : RcOc < namespace_env :: Env > , tast : & ' a ast :: Program , ) -> Result < HhasProgram < ' arena > > { let result = emit_program_ ( alloc , emitter , flags , namespace , tast ) ; match result { Err ( Error :: IncludeTimeFatalException ( op , pos , msg ) ) => { emit_fatal_program ( alloc , op , & pos , msg ) } _ => result , } }
This is the entry point from hh_single_compile
This is the entry point from hh_single_compile
alloc
&'arena bumpalo::Bump
emitter
&mut Emitter<'arena, 'decl>
flags
FromAstFlags
namespace
RcOc<namespace_env::Env>
tast
&'a ast::Program