tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
V\¬Qc@s=dZddlmZddlmZmZmZmZmZm    Z    ddl
m Z ddl Z ddl Z dZddd„ƒYZd    efd
„ƒYZd efd „ƒYZd efd„ƒYZdefd„ƒYZdefd„ƒYZddd„ƒYZd„Zedkr9ddl Z ddlmZmZddlZd„Zxäe jdD]ÒZeGHeeƒZej ƒZ!ej"ƒeje!edƒZ#ee#ƒZ$eeƒZ%eƒZ&ee%e&ƒe&j'e%jƒZ(ee$e(ƒs"HdGeGHe)e$ƒGHe)e(ƒGHe j*dƒniZ+e+j,e&j'ƒe+e%=e+j-ƒZ'[+xáe#j.ƒD]ÓZ&e&j/ƒr[ge'D]!Z0e0j1e&j2ƒkrte0^qtZ3e4e3ƒdkr¿dGe&j2ƒGHq.eee&j5ƒƒe3djƒƒs.e&j2ƒGHe)ee&j5ƒƒƒGHe)e3djƒƒGHe j*dƒq.q[q[Wq`WndS( sModule symbol-table generatoriÿÿÿÿ(tast(tSC_LOCALtSC_GLOBAL_IMPLICITtSC_GLOBAL_EXPLICITtSC_FREEtSC_CELLt
SC_UNKNOWN(tmangleNitScopecBs¤eZdd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d„Z d    „Z d
„Z d „Zd „Zd „Zd„Zd„Zd„ZRS(cCs½||_||_i|_i|_i|_i|_i|_i|_g|_d|_
d|_ d|_ |dk    r¹x>t t|ƒƒD]'}||dkr‹|||_ Pq‹q‹WndS(Nt_(tnametmoduletdefstusestglobalstparamstfreestcellstchildrentNonetnestedt    generatortklasstrangetlen(tselfR
R Rti((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt__init__s"                                                  cCsd|jj|jfS(Ns<%s: %s>(t    __class__t__name__R
(R((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt__repr__%scCs#|jdkr|St||jƒS(N(RRR(RR
((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyR(scCsd|j|j|ƒ<dS(Ni(R R(RR
((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pytadd_def-scCsd|j|j|ƒ<dS(Ni(R R(RR
((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pytadd_use0scCsy|j|ƒ}||jks0||jkr0n||jkrXtd||jf‚nd|j|<|jj|ƒdS(Ns %s in %s is global and parameteri(    RR R Rt SyntaxErrorR
RR R(RR
((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt
add_global3s cCs-|j|ƒ}d|j|<d|j|<dS(Ni(RR R(RR
((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt    add_param=s cCs@i}|j|jƒ|j|jƒ|j|jƒ|jƒS(N(tupdateR R Rtkeys(Rtd((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt    get_namesBs
cCs|jj|ƒdS(N(Rtappend(Rtchild((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt    add_childIscCs|jS(N(R(R((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt get_childrenLscCs—tj|jI|jrdp"dIJtjdI|jIJtjdI|jIJtjdI|jIJtjdI|jIJtjdI|jIJdS(NRts
   globals: s    cells: s    defs: s    uses: s    frees:(    tsyststderrR
RRRR R R(R((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pytDEBUGOs %cCsy||jkrtS||jkr&tS||jkr9tS|jrd||jks`||jkrdt    S|jrqt
St SdS(sbReturn scope of name.
 
        The scope of a name could be LOCAL, GLOBAL, FREE, or CELL.
        N( RRRRR RRRR RRR(RR
((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt
check_nameWs'    cCsr|js dSi}|j|jƒxB|jjƒD]1}||jkr3||jkr3d||<q3q3W|jƒS(Ni((RR$RR R%R R(RtfreeR
((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt get_free_varsis    cCsQxJ|jD]?}|jƒ}|j|ƒ}x|D]}|j|ƒq2Wq
WdS(N(RR2t    add_freest force_global(RR)RRR
((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pythandle_childrenss
  cCsfd|j|<||jkr)|j|=nx6|jD]+}|j|ƒtkr3|j|ƒq3q3WdS(sÞForce name to be global in scope.
 
        Some child of the current node had a free reference to name.
        When the child was processed, it was labelled a free
        variable.  Now that all its enclosing scope have been
        processed, the name is known to be a global or builtin.  So
        walk back down the child chain and set the name to be global
        rather than free.
 
        Be careful to stop if a child does not think the name is
        free.
        iN(RRRR0RR4(RR
R)((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyR4zs  cCsg}xû|D]ó}|j|ƒ}|jrÈ|tksR|tksRt|tƒrbd|j|<q|tkr~|j|ƒqt|t    ƒr©|t
kr©d|j |<q|t kr|j|ƒqq |t
kräd|j |<q |t kr |j|ƒq q W|S(sþProcess list of free vars from nested scope.
 
        Returns a list of names that are either 1) declared global in the
        parent or 2) undefined in a top-level parent.  In either case,
        the nested scope should treat them as globals.
        i( R0RRRt
isinstancet
ClassScopeRRR(t FunctionScopeRRR(Rtnamest child_globalsR
tsc((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyR3Žs$         cCs |jjƒS(N(RR%(R((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt get_cell_vars©sN(Rt
__module__RRRRRR R"R#R'R*R+R/R0R2R5R4R3R<(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyRs"                     
                           
           t ModuleScopecBseZejZd„ZRS(cCs|jd|ƒdS(Ntglobal(t_ModuleScope__super_init(R((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyR¯s(RR=RRR@(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyR>¬s    R8cBseZRS((RR=(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyR8²st GenExprScopecBs,eZejZdZdd„Zd„ZRS(icCs@|j}|jd7_|jd|||ƒ|jdƒdS(Nisgenerator expression<%d>s.0(t_GenExprScope__countert_GenExprScope__super_initR#(RR RR((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyRºs    cCstj|ƒ}|S(N(RR'(RR%((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyR'ÀsN(RR=RRRCRBRR'(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyRAµs     t LambdaScopecBs#eZejZdZdd„ZRS(icCs3|j}|jd7_|jd|||ƒdS(Nis    lambda.%d(t_LambdaScope__countert_LambdaScope__super_init(RR RR((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyRÉs    N(RR=RRRFRER(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyRDÄs    R7cBseZejZd„ZRS(cCs|j|||ƒdS(N(t_ClassScope__super_init(RR
R ((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyRÑs(RR=RRRG(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyR7Îs    t SymbolVisitorcBseZd„Zd„ZeZd„Zd„Zd„Zd„Zd„Z    dd„Z
d    „Z d
„Z d „Z dd „Zd „Zd„Zd„Zd„Zd„Zdd„Zdd„Zdd„Zdd„Zd„ZejejejfZd„Zd„ZRS(cCsi|_d|_dS(N(tscopesRR(R((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyRÕs    cCs2tƒ}|_|j|<|j|j|ƒdS(N(R>R RItvisittnode(RRKtscope((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt visitModuleÛscCsÙ|jr|j|j|ƒn|j|jƒx!|jD]}|j||ƒq9Wt|j|j|jƒ}|js†t    |tƒr’d|_n||j
|<|j ||j ƒ|j|j |ƒ|j||ƒdS(Ni(t
decoratorsRJRR
tdefaultsR8R RRR6RIt_do_argstargnamestcodethandle_free_vars(RRKtparenttnRL((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt visitFunctionás      cCs|t|j|jƒ}|js<t|tƒs<t|tƒrHd|_n||j|<|j|j|ƒ|j    ||ƒdS(Ni(
RAR RRR6R8RIRJRRRS(RRKRTRL((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt visitGenExprïs  cCs;x!|jD]}|j||ƒq
W|j|j|ƒdS(N(tqualsRJtexpr(RRKRLtgenfor((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pytvisitGenExprInnerúscCsQ|j|j|dƒ|j|j|ƒx!|jD]}|j||ƒq3WdS(Ni(RJtassigntitertifs(RRKRLtif_((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pytvisitGenExprForscCs|j|j|ƒdS(N(RJttest(RRKRL((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pytvisitGenExprIfsicCs±| s t‚x!|jD]}|j||ƒqWt|j|jƒ}|js^t|tƒrjd|_n||j    |<|j
||j ƒ|j|j |ƒ|j ||ƒdS(Ni(tAssertionErrorRORJRDR RRR6R8RIRPRQRRRS(RRKRTR\RURL((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt visitLambda    s   cCsJxC|D];}t|ƒtjkr5|j||ƒq|j|ƒqWdS(N(ttypettypest    TupleTypeRPR#(RRLtargsR
((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyRPs cCs|j|ƒ|jƒdS(N(R*R5(RRLRT((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyRS s cCsë|j|jƒx!|jD]}|j||ƒqWt|j|jƒ}|jsat|tƒrmd|_n|j    dk    rŒ|jdƒn|jdƒ||j |<|j }|j|_ |j|j |ƒ||_ |j||ƒdS(Nit__doc__R=(RR
tbasesRJR7R RR6R8tdocRRIRRRRS(RRKRTRURLtprev((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt
visitClass$s            cCs-|r|j|jƒn|j|jƒdS(N(RR
R (RRKRLR\((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt    visitName;scCs_|j|j|dƒ|j|j|ƒ|j|j|ƒ|jr[|j|j|ƒndS(Ni(RJR\tlisttbodytelse_(RRKRL((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pytvisitForCs
    cCsCx<|jD]1\}}|dkr(q
n|j|p7|ƒq
WdS(Nt*(R9R(RRKRLR
tasname((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt    visitFromJs cCsYxR|jD]G\}}|jdƒ}|dkr>|| }n|j|pM|ƒq
WdS(Nt.iÿÿÿÿ(R9tfindR(RRKRLR
RtR((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt visitImportPs
  cCs%x|jD]}|j|ƒq
WdS(N(R9R"(RRKRLR
((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt visitGlobalWscCs>x$|jD]}|j||dƒq
W|j|j|ƒdS(s.Propagate assignment flag down to child nodes.
 
        The Assign node doesn't itself contains the variables being
        assigned to.  Instead, the children in node.nodes are visited
        with the assign flag set to true.  When the names occur in
        those nodes, they are marked as defs.
 
        Some names that occur in an assignment target are not bound by
        the assignment, e.g. a name occurring inside a slice.  The
        visitor handles these nodes specially; they do not propagate
        the assign flag to their children.
        iN(tnodesRJRY(RRKRLRU((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt visitAssign[s icCs|j|jƒdS(N(RR
(RRKRLR\((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt visitAssNamelscCs|j|j|dƒdS(Ni(RJRY(RRKRLR\((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt visitAssAttroscCsA|j|j|dƒx$|jD]}|j||dƒq WdS(Ni(RJRYtsubs(RRKRLR\RU((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pytvisitSubscriptrscCs^|j|j|dƒ|jr8|j|j|dƒn|jrZ|j|j|dƒndS(Ni(RJRYtlowertupper(RRKRLR\((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt
visitSlicews
        cCsX|j|j|ƒt|jtjƒrA|j|j|dƒn|j|j|ƒdS(Ni(RJRKR6RtNameRY(RRKRL((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pytvisitAugAssign~scCsœxv|jD]k\}}t|tjƒrUt|jƒ|jkrU|jsRq
qRqUn|j||ƒ|j||ƒq
W|jr˜|j|j|ƒndS(N(    ttestsR6RtConstRetvaluet _const_typesRJRq(RRKRLRaRp((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pytvisitIfŠs         cCs d|_|j|j|ƒdS(Ni(RRJR‡(RRKRL((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt
visitYield—s    ( RR=RRMtvisitExpressionRVRWR[R`RbRdRPRSRmRnRrRuRxRyR{R|R}RR‚R„Rft
StringTypetIntTypet    FloatTypeRˆR‰RŠ(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyRHÔs4                                                                      
     cCst|ƒt|ƒkS(N(tsorted(tl1tl2((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pytlist_eq›st__main__(t    parseFiletwalkcCsTgg|jƒD]}|jƒ^qD]*}|jdƒpG|jdƒs&|^q&S(Ns_[Rv(t get_symbolstget_namet
startswith(tsymsts((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyR'£s,itexectoopstskippingi(((6RitcompilerRtcompiler.constsRRRRRRt compiler.miscRRfR-t
MANGLE_LENRR>R8RARDR7RHR’RR”R•tsymtableR'targvtfiletopentftreadtbuftcloseR™t    mod_namesttreeRšRItnames2RtexitR&R$tvaluesR–t is_namespaceR;R
R—tlRt get_namespace(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/symbols.pyt<module>sj.  ž
Ç             
                !