ó ¥”ÿUc@s“ddlZddlmZddlmZddlmZddlmZdZ dZ d Z d „Z d „Z d „Zd efd„ƒYZdS(iÿÿÿÿN(tparsei(tast(tCOMPATIBLE_GIR_VERSION(t OrderedDicts)http://www.gtk.org/introspection/core/1.0s&http://www.gtk.org/introspection/c/1.0s)http://www.gtk.org/introspection/glib/1.0cCsdt|fS(Ns{%s}%s(tCORE_NS(ttag((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyt_corens"scCsdt|fS(Ns{%s}%s(tGLIB_NS(R((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyt_glibns&scCsdt|fS(Ns{%s}%s(tC_NS(R((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyt_cns*st GIRParsercBs+eZed„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d„Z d „Z d „Z d „Zd „Zd „Zd„Zd„Zd„Zdd„Zd„Zd„Zed„Zed„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"RS( cCs||_d|_g|_dS(N(t _types_onlytNonet _namespacet_filename_stack(tselft types_only((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyt__init__0s  cCsLtjj|ƒ}|jj|ƒt|ƒ}|j|ƒ|jjƒdS(N(tostpathtabspathRtappendRt parse_treetpop(Rtfilenamettree((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyR7s   cCsMd|_tƒ|_tƒ|_tƒ|_d|_|j|jƒƒdS(N( R Rtsett_pkgconfig_packagest _includest _c_includest _c_prefixt _parse_apitgetroot(RR((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyR>s      cCs|jS(N(R(R((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyt get_namespaceFscCsjt|tƒr<xT|jƒD]}|j|kr|SqWn*x'|jƒD]}|j|krI|SqIWdS(N(t isinstancetstrt getchildrenRR (Rtnodet name_or_namestchild((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyt_find_first_childKs cCs,g|jƒD]}|j|kr |^q S(N(R%R(RR&tnameR(((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyt_find_childrenVscCsN|js dStjƒtj}|jd}|j|ƒrJ|t|ƒS|S(Niÿÿÿÿ(RR Rtgetcwdtsept startswithtlen(Rtcwdtcurfile((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyt_get_current_fileYs  c CsÎ|jd}|tkr;td|jƒ|tfƒ‚nxƒ|jƒD]u}|jtdƒkrs|j|ƒqH|jtdƒkr˜|j|ƒqH|jt dƒkrH|j |ƒqHqHW|j tdƒƒ}|jj t dƒƒ}|r|j dƒ}n|jj t dƒƒ}|r6|j dƒ}ntj|jd |jdd |d |ƒ|_d |jkr“|jd j dƒ|j_n|j|j_|j|j_|j|j_i |jtd ƒ6|jtdƒ6|jtdƒ6|jtdƒ6|jtdƒ6|jtdƒ6|jtdƒ6|jtdƒ6|jtdƒ6}|j sˆ|j!|tdƒ<|j"|tdƒtd|fƒ‚n|jjdƒ}|jjdƒdk}tj|j|ƒ||ƒ}|j||ƒg} |jjdƒdk} |tj krð|||| | |jjt dƒƒƒ} n |tj kr2|jjt d ƒƒ} |||| | | ƒ} nÉ|tj krY|||| | ƒ} n¢|tj krû|||| d |jjd ƒd |jjd d ƒdkd|jjdd ƒdkd|jjdd ƒdkd|jjdd ƒdkƒ} n|jjddƒ| _|jjddƒ| _|jjddƒ| _|| _|jtdƒƒ} | dk r™|j| tdƒƒ}|r |j|ƒ| _nx6|j| tdƒƒD]}| j|j|ƒƒq¹Wx½t|j| tdƒƒƒD]š\}}| |}|j| ||jƒ|jjdƒ}|r[t|ƒ}| |j|_n|jjdƒ}|røt|ƒ}| |j|_qøqøWn|j| ||jƒ|j|| ƒ|jj | ƒ| S(NR*s return-valuesnode %r has no return-valuestransfer-ownershipR±R²tthrowsRat identifiertwhent no_recurses no-recurseRtdetailedtactiontno_hookssno-hookstshadowss shadowed-bysmoved-tot parameterssinstance-parametert parametertclosuretdestroy(!RERJRRmRKRtReturnRbRdR¯R R•R™R£R RÀt shadowed_bytmoved_toRxR)R¸tinstance_parameterR+Rt enumeratet_parse_type_array_lengthRaRltargnamet closure_namet destroy_nameRttrack(RR&R¥RxR*t returnnodettransferR±tretvalRÁR¹R¬Rºtparameters_nodet paramnodetiR·RÃtidxRÄ((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyR”5sh !     cCs|g}tdƒtdƒtdƒtdƒf}xE|jƒD]7}|j|kr=|j||ƒ}|j|ƒq=q=W|S(NtfieldR@RAR<(RR%Rt _parse_fieldR(RR&RvtrestnamesR(tfieldobj((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyRŸvs*c Cs2||jjdƒd|jjtdƒƒd|jjdƒdkd|jjtdƒƒd|jjtd ƒƒd |jjtd ƒƒƒ}|jjd ƒdkr´t|_n|j||ƒ|js.|jj |j ||ƒƒxQ|j |t d ƒƒD]7}|j |tj|ƒ}t|_|jj|ƒqWxRt|j |t dƒƒƒD]2\}}|j|}|j|j||jƒq\WxB|j |t dƒƒD](}|jj|j |tj|ƒƒq«WxT|j |t dƒƒD]7} |j | tj|ƒ}t|_|jj|ƒqðWn|S(NR*R}Rat disguisedR²Rzs type-nameR{sget-typeR|s symbol-prefixtforeignR^RÖRDR‡(RERKR RRRÜRdR RRžRŸR+RR”RR•R—R˜RRÉRÊRaR–R›Rœ( RtclsR&tcompoundR^R¬RÔt fieldnodeRÖR­((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyt_parse_compounds4   +   cCsn|jtj|ƒ}|jjtdƒƒ}|dk rQ|jj|ƒ|_ n|sj|jj |ƒn|S(Nsis-gtype-struct-for( RàRtRecordRERKRR RRŠtis_gtype_struct_forR(RR&t anonymouststructRâ((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyRV›s cCs2|jtj|ƒ}|s.|jj|ƒn|S(N(RàRtUnionRR(RR&RãRA((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyRW¤scCsœ|jtdƒkrM|jj|jdƒ}|jjtdƒƒ|_|S|jtdƒkr|jjdƒ}|j|ƒ}|jjtdƒƒ}t j ||d|ƒ}|jjdƒ}|rã|dkrãt |_ n|jjdƒ}|r t |ƒ|_n|S|jtd ƒkr0t jƒS|jtdƒkr˜|jjdƒ} |jjtdƒƒ} | dkr¡| dkr‘t jƒSt jd| ƒS| dkr|j|ttdƒƒ} | dk ræ|j|ƒ}n t j}t j| |d| ƒS| d kr‚|j|tdƒƒ} t|j| ƒ} x&t| ƒd krc| jt jƒq>Wt j| d| dd| ƒS|jj| | ƒSndS(NR<R*RatarrayR}szero-terminatedRs fixed-sizetvarargss GLib.Lists GLib.SListsGLib.HashTableiii(s GLib.Lists GLib.SList(scallbacksarrayRçstype(RRRRŠRERKR R}RbRtArrayRntzeroterminatedRltsizetVarargsR t TypeUnknowntTypeR)tmaptTYPE_ANYtListR+t_parse_type_simpleR/RtMap(RttypenodeRet array_typet element_typet array_ctypetrettzerot fixed_sizeR*R}tsubchildt subchildrentsubchildren_types((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyRñªsR           cCsFx?ttdƒD].}|j|ƒ}|dk r|j|ƒSqWdS(NR<RæRçRa(scallbacksarraysvarargsstype(RîRRJR Rñ(RR&R*Ró((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyRbÜs  cCs|jtdƒƒ}|dkr%dS|jjdƒ}|dk r‹t|ƒ}t||tjƒrx||j |_ q‹||j |_ ndS(sYA hack necessary to handle the integer parameter/field indexes on array types.RæNtlength( RJRR RERKRlR#RtFieldR*tlength_param_nameRË(RtsiblingsR&ReRótlenidxRÕ((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyRÊãs   c Csytj|jtdƒd|jtdƒd|jtdƒd|jjtdƒƒƒ}|j||ƒ|jr‡|jj |ƒdSxQ|j |t dƒƒD]7}|j |tj |ƒ}t|_|jj |ƒq WxB|j |t d ƒƒD](}|jj |j |tj |ƒƒqôWxB|j |t d ƒƒD](}|jj |j |tj|ƒƒq9W|jj |ƒdS( NR*Rzs type-nameR{sget-typeR|s symbol-prefixR^R‡R<(RtBoxedRERRKR RdR RRR+RR”R•RR—R˜RœRR¯(RR&RvR^R¬R­R<((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyRXòs&    cCsd}d}|jttd ƒkr-|}n|j|tdƒƒ}|dk rÛ|jtdƒkr~|j|tjƒ}qê|jtdƒkr«|j|dt ƒ}qê|jtdƒkrê|j |dt ƒ}qên|j |ƒ}tj |j jdƒ||j jdƒdk|j jdƒd k|j jd ƒd |ƒ}|j jd ƒd k|_||_|j||ƒ|S(NR@RAR<RãR*treadableRtwritableR²tbitstanonymous_nodetprivate(srecordsunion(R RRîRR)R”RR¯RVRRWRbRþRERKRRxRd(RR&Rxt type_nodeRt anonymous_eltRÖ((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyR× s0    c Cs¢tj|jd|j|ƒ|jjdƒdk|jjdƒdk|jjdƒdk|jjdƒdk|jjdƒƒ}|j||ƒ||_|S( NR*RRRR²t constructsconstruct-onlystransfer-ownership(RtPropertyRERbRKRdRx(RR&RxR®((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyR¡'s  cCs^tj|jd|jd|jjtdƒƒ|jjtdƒƒƒ}|j||ƒ|S(NR*RkRºtnick(RtMemberRERKR RRd(RR&tmember((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyt _parse_member3s  cCsk|j|ƒ}tj|jd||jd|jjtdƒƒƒ}|j||ƒ|jj|ƒdS(NR*RkRa( RbRtConstantRERKR RdRR(RR&RRC((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyRY;s c Cs¯|jjdƒ}|jjtdƒƒ}|jjtdƒƒ}|jjtdƒƒ}|jjtdƒƒ}|jtdƒkr“tj}n tj}g}|||d|d|d |ƒ} || _ || _ |j || ƒ|j r|j j| ƒdSxE|j|td ƒƒD]+} |j| ƒ} | | _|j| ƒqWxN|j|td ƒƒD]4} |j| tjƒ} | | _| jj| ƒqcW|j j| ƒdS( NR*Rasget-types type-names error-domainR;tmembersRzR{RRD(RERKR RRRRtBitfieldtEnumt error_domainR}RdR RRR+RRxR”R•R–(RR&R*R}R{t type_nametglib_error_domainR¥RRvt member_nodeRR«R¬((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyRSDs8         N(#t__name__t __module__RnRRRR"R)R+R2R RGRHRIRRRdRURTRZR¸R R”RŸRàRVRWRñRbRÊRXR×R¡RRYRS(((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyR .s>      5     2 F    A   2      (Rtxml.etree.cElementTreeRtRt girwriterRt collectionsRRR RRRR tobjectR (((ss/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyts