ó
7ˆUc           @   s|   d  d l  m Z d  d l m Z d  d l m Z d  d l m Z d  d l m	 Z	 m
 Z
 m Z m Z d e f d „  ƒ  YZ d S(	   iÿÿÿÿ(   t
   ModuleNode(   t   ModuleScope(   t   TransformTest(   t   MethodDispatcherTransform(   t   NormalizeTreet   AnalyseDeclarationsTransformt   AnalyseExpressionsTransformt   InterpretCompilerDirectivest   TestMethodDispatcherTransformc           B   s)   e  Z d Z d  „  Z d „  Z d „  Z RS(   c         C   sm   |  j  d  k rf d  } d „  } | t | ƒ t | i  ƒ t | ƒ t | ƒ g } |  j | d ƒ |  _  n  |  j  S(   Nc         S   s=   t  d d  d  ƒ } t |  j d d  d |  d | d d d i  ƒS(   Nt   testt   doct   bodyt   scopet   full_module_namet   directive_comments(   R   t   NoneR    t   pos(   t   nodeR   (    (    sq   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyt   fake_module   s    u‘   
                cdef bytes s = b'asdfg'
                cdef dict d = {1:2}
                x = s * 3
                d.get('test')
            (   t   _treeR   R   R   R   R   t   run_pipeline(   t   selft   contextR   t   pipeline(    (    sq   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyt   _build_tree   s    				c            sY   d g ‰  d t  f ‡  f d †  ƒ  Y} |  j ƒ  } | d  ƒ | ƒ |  j d ˆ  d ƒ d  S(   Ni    t   Testc              s   e  Z ‡  f d  †  Z RS(   c            s   ˆ  d c d 7<| S(   Ni    i   (    (   R   R   t   funct   argst   unbound(   t   calls(    sq   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyt   _handle_simple_method_dict_get(   s    (   t   __name__t
   __module__R   (    (   R   (    sq   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyR   '   s   i   (   R   R   R   t   assertEqual(   R   R   t   tree(    (   R   sq   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyt   test_builtin_method%   s
    	c            sx   i d d 6d d 6‰  d t  f ‡  f d †  ƒ  Y} |  j ƒ  } | d  ƒ | ƒ |  j d ˆ  d ƒ |  j d ˆ  d ƒ d  S(   Ni    t   bytest   objectR   c              s&   e  Z ‡  f d  †  Z ‡  f d †  Z RS(   c            s   ˆ  d c d 7<| S(   NR$   i   (    (   R   R   R   R   R   (   R   (    sq   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyt#   _handle_simple_method_bytes___mul__3   s    c            s   ˆ  d c d 7<| S(   NR%   i   (    (   R   R   R   R   R   (   R   (    sq   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyt$   _handle_simple_method_object___mul__6   s    (   R   R    R&   R'   (    (   R   (    sq   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyR   2   s   i   (   R   R   R   R!   (   R   R   R"   (    (   R   sq   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyt   test_binop_method0   s    N(   R   R    R   R   R   R#   R(   (    (    (    sq   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyR   
   s   		N(   t   Cython.Compiler.ModuleNodeR    t   Cython.Compiler.SymtabR   t   Cython.TestUtilsR   t   Cython.Compiler.VisitorR   t#   Cython.Compiler.ParseTreeTransformsR   R   R   R   R   (    (    (    sq   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyt   <module>   s
   "