(value, block, func_ir, loc=unknown_loc, prefix=None, name=None)
return stmt
Creates variable and constant object with given value. Assign created variable to the constant
Creates variable and constant object with given value. Assign created variable to the constant
Creates variable and constant object with given value . Assign created variable to the constant
def declare_constant(value, block, func_ir, loc=unknown_loc, prefix=None, name=None):
    """
    Creates variable and constant object with given value. Assign created variable to the constant
    """

    if prefix is None and name is None:
        prefix = '$_const_'

    stmt = make_assign(Const(value, loc, True), block.scope, func_ir, loc, prefix=prefix, name=name)

    block.prepend(stmt)

    return stmt
def declare_constant ( value , block , func_ir , loc = unknown_loc , prefix = None , name = None ) : if prefix is None and name is None : prefix = '$_const_' stmt = make_assign ( Const ( value , loc , True ) , block . scope , func_ir , loc , prefix = prefix , name = name ) block . prepend ( stmt ) return stmt