Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Declare some declarations given as Cython code in declaration_string
in scope env.

        def declare_declarations_in_scope(declaration_string, env, private_type=True,
                                  *args, **kwargs):
    """
    Declare some declarations given as Cython code in declaration_string
    in scope env.
    """
    CythonUtilityCode(declaration_string, *args, **kwargs).declare_in_scope(env)
        


src/c/y/Cython-0.20.1/Cython/Compiler/FusedNode.py   Cython(Download)
        fragment = TreeFragment.TreeFragment(fragment_code, level='module')
        ast = TreeFragment.SetPosTransform(self.node.pos)(fragment.root)
        UtilityCode.declare_declarations_in_scope(decl_code.getvalue(),
                                                  env.global_scope())
        ast.scope = env

src/c/y/cython-HEAD/Cython/Compiler/FusedNode.py   cython(Download)
        fragment = TreeFragment.TreeFragment(fragment_code, level='module')
        ast = TreeFragment.SetPosTransform(self.node.pos)(fragment.root)
        UtilityCode.declare_declarations_in_scope(decl_code.getvalue(),
                                                  env.global_scope())
        ast.scope = env