Tc@sNddlZddlZddlZddlmZddlmZddlmZm Z ddl m Z e dZ dZd efd YZd efd YZd efdYZdefdYZdefdYZdefdYZdefdYZied6ed6ed6ZdefdYZdS(iN(tsaxutils(tTemplateLookupi(tastt xmlwriter(tto_underscorescCsUt|tjr&|r|jSdSnt|drN|jrN|jd}nt|dd}|dkrt|tjr|j rd|j j|j fSd|j j|jfSnt|tj tj tj tjfrdt|dt|jfSt|tjr4|j r4dt|dt|j fSdt|dt|jfSdS(Ntindext_chainitparents%s.%ss%s-%st recursive(t isinstanceRt NamespacetnamethasattrRtgetattrtNonetFunctiontshadowst namespacetPropertytSignalt VFunctiontFieldt make_page_idtTrue(tnodeRR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyR#s  'cCst|tjrd}n}t|tjtjtjfrEd}nSt|tjr`d}n8t|tjr{d}nt|tjr|j rd}q|j rd}qd}nt|tj tj frd}nt|tj r|jdk rd }nt|tjr2|jdk r2d }nft|tjr\|jdk r\d }n<t|tjrwd }n!t|tjrd }nd}|S(NRtclasst interfacetrecordtmethodt constructortfunctiontenumtpropertytsignaltvfunctcallbacktfieldtdefault(R RR tClasstBoxedtCompoundt InterfacetRecordRt is_methodtis_constructortEnumtBitfieldRRRRRtCallableR(Rt node_kind((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyt get_node_kind=s8 !         ! ! !   tTemplatedScannercBs5eZdZdZdZdZdZRS(cCs+|j||_|j|j|_dS(N(tunmangle_specstspecst make_regextregex(tselfR4((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyt__init__`scsitjdtd|Ddfdg|D]!\}}|||f^qDS(Ns<<([a-zA-Z_:]+)>>css*|] \}}|jd|fVqdS(t!N(tlstrip(t.0R tspec((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pys fscs%fd}j||S(Ncsz|jd}d|kr6|jdd\}}nd}|}|d}|rrrrd||fS|SdS(Nit:s (?P<%s_%s>%s)(tgrouptsplitR(tmatchtchild_spec_namet pattern_namet child_spect unmangled(R tspecdicttunmangle(ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyt replace_funcis   (tsub(R<R RG(tmangledRERF(R ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRFhs(tretcompiletdictR(R7R4R R<((RIRERFss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyR3dscCs&djd|D}tj|S(Nt|css4|]*\}}|jdsd||fVqdS(R9s (?P<%s>%s)N(t startswith(R;R R<((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pys ~s (tjoinRJRK(R7R4R6((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyR5}scCsy|j}i|j||6}|d}xF|jD]8\}}|j|r9|t|}|||tvaluetkey((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pytget_propertiess  ccsd}xtr|jj||}|dkr4Pn|j}||krdd|||!dfVn|j}|j}||jd|j||fVq W|t |krd||dfVndS(Nitother( RR6tsearchRtstarttendt lastgroupR>RXRT(R7ttexttposR@R[R ((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pytscans      '(t__name__t __module__R8R3R5RXR`(((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyR2_s     tDocstringScannercBseZdZRS(c Cs8ddddddddg}tt|j|dS(Ns!alphas [a-zA-Z0-9_]+s !alpha_dashs[a-zA-Z0-9_-]+R s3#<>:(<>)R!s2#<>::(<>)t type_names#(<>)t enum_values%(<>)t parameters@<>t function_calls<>\(\)(s!alphas [a-zA-Z0-9_]+(s !alpha_dashs[a-zA-Z0-9_-]+(spropertys3#<>:(<>)(ssignals2#<>::(<>)(Rds#(<>)(s enum_values%(<>)(s parameters@<>(Rgs<>\(\)(tsuperRcR8(R7R4((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyR8s (RaRbR8(((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRcst DocFormattercBs%eZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZdZdZdZdZdZedZdZdZdZdZdZedZdZdZdZdZ dZ!RS(cCs||_t|_dS(N(t _transformerRct_scanner(R7t transformer((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyR8s cCs tj|S(N(Rtescape(R7R^((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRmscCs?t|dtrtSt|tjr;|jdkr;tStS(Ntprivate(R tFalseR RtNodeRRR(R7R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pytshould_render_nodes !cCs^|dkrdSd}xA|jdD]0}|d7}||j||7}|d7}q&W|S(Nts s

s

(RR?t format_inline(R7Rtdoctresulttpara((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pytformats  cCs_y|jj|}Wntk r*dSXx-|D]%\}}|j|}|r2|Sq2WdS(N(Rjtsplit_ctype_namespacest ValueErrorRtget(R7tidenttmatchesRR R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyt _resolve_types cCs_y|jj|}Wntk r*dSXx-|D]%\}}|j|}|r2|Sq2WdS(N(Rjtsplit_csymbol_namespacesRyRt get_by_symbol(R7tsymbolR|RR R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyt_resolve_symbols cCs;x!|D]}|j|kr|SqWtd|fdS(NsCould not find %s(R tKeyError(R7tlist_R titem((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyt _find_things cCs |j|S(N(Rm(R7RR@tprops((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyt_process_otherscCsh|j|d}|dkr#|Sy|j|j|d}Wnttfk rZ|SX|j|S(NRdt property_name(R}RRRUtAttributeErrorRt format_xref(R7RR@Rt type_nodetprop((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyt_process_propertys cCsh|j|d}|dkr#|Sy|j|j|d}Wnttfk rZ|SX|j|S(NRdt signal_name(R}RRtsignalsRRR(R7RR@RRR!((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyt_process_signals cCs0|j|d}|dkr#|S|j|S(NRd(R}RR(R7RR@Rttype_((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyt_process_type_names cCsZ|d}yd|j|fSWntk r3nX|j|}|rV|j|S|S(Nt member_names%s(t fundamentalsRRR(R7RR@RRRe((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyt_process_enum_values   cCsIy|j|d}Wnttfk r1|SXd|j||fS(Nt param_names%s(t get_parameterRRytformat_parameter_name(R7RR@RRf((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyt_process_parameters cCs0|j|d}|dkr#|S|j|S(Nt symbol_name(RRR(R7RR@Rtfunc((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyt_process_function_call$s cCso|\}}}i|jd6|jd6|jd6|jd6|jd6|jd6|jd6}|||||S(NRYR R!RdReRfRg(RRRRRRR(R7RttoktkindR@Rtdispatch((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyt_process_token+s       cCs tdS(N(tNotImplementedError(R7R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pytget_in_parameters:scCsD|jj|}g|D]}|j||^q}dj|S(NRr(RkR`RRO(R7RRvttokensRtwords((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRs=s%cCs$t|jtjrdS|jSdS(Ns...(R ttypeRtVarargstargname(R7RRf((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRBscCs tdS(N(R(R7R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pytformat_function_nameHscCs tdS(N(R(R7Rtlink((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyt format_typeKscCs>t|tjr|jSt|tjr8|j|St|tjrv|jdk rvd|j |j|jfSt|tj r|jdk rd|j |j|jfSt|tj r|jdk rd|j |j|jfSt|tj r0|jdk r0d|j |j|jfSt |SdS(Ns%s:%ss%s::%ss%s->%s(R RR R RRRRRtformat_page_nameRRRR(R7R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRNs !!!!cKs|dkst|d r?dg|j}tjd|St|tjro|j|j |d|j S|j |j j kr|j ||S|j||SdS(NRtxrefRRt.(Rsindex(RR titemsRt build_xml_tagR RtMemberRRR RRjtformat_internal_xreftformat_external_xref(R7Rtattrdicttattrs((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyR^scCs/dt|fg|j}tjd|S(NRR(RRRR(R7RRR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRjscCsc|j}dd|jt|jt|ffg}||j7}tjd||j|S(Nthrefs../%s-%s/%s.htmlR( RR tstrtversionRRRRR(R7RRtnsR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRns  cCstS(N(R(R7R$((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pytfield_is_writableuscCsg}|jr&| r&|jdn|jrU| rU|j|rU|jdnt|tjr|jr|jdn|jr|jdqndj |S(NtReadtWritet ConstructsConstruct Onlys / ( treadabletappendtwritableRR RRt constructtconstruct_onlyRO(R7t property_Rtflags((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pytformat_property_flagsxs  cCst|tjr%|jjddS|jr;t|jSt|tjrQdSt|tjrgdSt|tjr}dSt ddS(Nt-RPR#tanonymous_unionsanonymous fields invalid node( R RRR treplaceRtCallbacktUnionRt Exception(R7R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRs  cCs|dj|dS(Nii(tlower(R7tstring((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pytto_lower_camel_casescCsat|tjst|g}x/|jrR|jj|j}|j|q$W|j|S(N( R RR&tAssertionErrort parent_typeRjtlookup_typenodeRtreverse(R7Rt parent_chain((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pytget_class_hierarchys   cCs{t|tjstt|jdkrst|jdkredj|jd d|jdS|jdSndSdS(Niis, is and sGObject.Object(R RR)RRTt prerequisitesRO(R7R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pytformat_prerequisitess #cCst|tjst|jjd|j}g}xc|jjD]R}t|tjscqEnx1|jD]&}|j |krm|j |PqmqmWqEWt |dkrdSd|jf}t |dkr||djS|dj d|d Dd |djSdS( NRiRs%s is implemented by is, css|]}|jVqdS(N(R (R;ti((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pys sis and ( R RR)RRR t itervaluesR&t interfacest target_ginameRRTRO(R7Rt node_nametimpltct implementedtout((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pytformat_known_implementationss   ("RaRbR8RmRqRwR}RRRRRRRRRRRRsRRRoRRRRRRRRRRRR(((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRis>                       t DocFormatterCcBsMeZdZdZidd6dd6dd6ZedZdZdZRS(tCs text/x-csrctTRUEtFALSEtNULLcCsot|tjr&|j|jdS|jdk r<|jS|jrL|jS|jj |}t |dSdS(Nt*tctype( R RtArrayRt element_typeRRttarget_fundamentalRjRR (R7RRR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRs cCs$t|tjr|jS|jSdS(N(R RRRR (R7R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRscCs|jS(N(tall_parameters(R7R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRs( RaRbtlanguaget mime_typeRRoRRR(((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRs  tDocFormatterIntrospectableBasecBseZdZRS(cCsvt|tjr%|jdk r%tSt|dts;tSt|tjr`|j dk r`tSt t |j |S(Ntintrospectable( R RR*tis_gtype_struct_forRRoR RRt shadowed_byRhRRq(R7R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRqs!!(RaRbRq(((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRstDocFormatterPythoncBsqeZdZdZidd6dd6dd6ZdZd Zd Zd Ze d Z d Z dZ RS(tPythons text/pythonRRRoRRRcCs,t|dtrtStt|j|S(NR,(R RoRhRRq(R7R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRqscCs0t|dtrtSt|tjr,tStS(NR+(R RoRR RR(R7R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyR+s cCsF|j|r"||jkr"dSt|jtjr;dS|jSdS(NR7s...(R+tinstance_parameterR RRRR(R7RRf((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRs cCsidd6dd6dd6dd6dd6d d 6d d 6d d 6d d 6d d6d d6dd6dd6dd6dd6dd6dd6dd6}|j||S(Ntunicodetutf8tgunicharRtgchartguchartbooltgbooleantinttginttguinttglongtgulongtgint64tguint64tfloattgfloattgdoublet gchararrays GLib.ParamtGParamtobjecttPyObjects[str]tGStrvs GLib.VarianttGVariant(Rz(R7R tfundamental_types((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pytformat_fundamental_types( cCst|tjtjfr3d|j|jdSt|tjrkd|j|j|j|jfS|j dk r|j S|j |j SdS(Nt[t]s{%s: %s}( R RtListRRRtMaptkey_typet value_typeRRR R(R7RR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyR/scCs7|jdk r,d|j|j|jfS|jSdS(Ns%s.%s(RRRR (R7R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyR:scCs|jS(N(R(R7R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyR@s( RaRbRRRRqR+RR RoRRR(((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRs    tDocFormatterGjscBseZdZdZidd6dd6dd6ZdZd Zd Zd Ze d Z d Z dZ dZ dZdZdZdZdZdZdZRS(tGjss text/x-gjsttrueRtfalseRtnullRcCs0t|dtrtSt|tjr,tStS(NR+(R RoRR RR(R7R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyR+Ns cCsd}d}td|j}x\|D]T}|dkrXt|jdkrX|}n|dkr(|jdkr(|}q(q(W|dkr|}n|dkrt|dkr|d}n||_||_dS(NcSst|dtS(NR(R R(R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyt\sitnew(Rtfiltert constructorsRTt parametersR tgjs_default_constructortgjs_zero_args_constructor(R7Rtzero_args_constructortdefault_constructortintrospectable_constructorsR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pytresolve_gboxed_constructorWs$            cCst|tjtjfr+|j|nt|tjr|jrt|jt|jkot|j kodknrt St|tj rt St|tj r|j dkrt St|jtjtjfrt Snt|tjr|jdkrt St|tjrt }|jr|jj|j}x`|r|jjdkr{|jdkr{t}Pn|jdkrPn|jj|j}qJWn|rt Sntt|j|S(NitGObjectt ParamSpec(R RR(R'R"t disguisedRTtmethodststatic_methodsRRotErrorQuarkFunctionRRRRR&RR RRjRRRRhRRq(R7Rtis_gparam_subclassR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRqns:B!  cCsi dd6dd6dd6dd6dd 6d d 6d d 6dd6dd6dd6dd6dd6dd6dd6dd6dd6d d!6d d"6d d#6d$d%6d&d'6d(d)6d*d+6d,d-6d.d/6d0d16d2d36d4d56d6d76d8d96d:d;6d<d=6}|j||S(>NtvoidtnonetgpointertBooleanRs Number(gint8)tgint8sNumber(guint8)tguint8sNumber(gint16)tgint16sNumber(guint16)tguint16sNumber(gint32)tgint32sNumber(guint32)tguint32s Number(gchar)RsNumber(guchar)RsNumber(gshort)tgshorts Number(gint)Rs Number(guint)RsNumber(gfloat)RsNumber(gdouble)RtStringRRtfilenames GObject.TypetGTypes GLib.VariantR s Number(gsize)tgsizesNumber(gssize)tgssizesNumber(gintptr)tgintptrsNumber(guintptr)tguintptrs Number(glong)RsNumber(gulong)RsNumber(gint64)RsNumber(guint64)RsNumber(long double)s long doublesNumber(long long)s long longsNumber(unsigned long long)sunsigned long long(Rz(R7R R ((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyR sD cCstt|tjr(|jjdkr(dSt|tjtjfr^d|j|j|dSt|tjrd|j|j||j|j |fS| s|jdkrdS|j dk r`|j }|dkrdS|d krd S|d krdS|r\|j j j}|j|dr4d||fS|j j|}|r\|j|Sn|S|j|jSdS(NR.R/t ByteArraysArray(t)s{%s: %s}R+R*sGLib.ByteArrays GLib.Bytess GObject.ValuetAnysGObject.ClosureRRs%s(sgint8sguint8(sGLib.ByteArrays GLib.Bytes(R RRRRRRRRRRRRjRR RNRRR (R7RRtginametnsnametresolved((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRs6    cCsr|j}|jr|j}n|jrAd|j|j|fS|jdk rjd|j|j|fS|SdS(Ns%s.prototype.%ss%s.%s(R RR+RRR(R7RR ((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRs    cCsRt|tjtjfr>d|j|j|j|fStj||SdS(Ns%s.%s(R RRRRRRR(R7R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRs#cCs(t|jdkp'|jjjdkS(NiR+(RTRtretvalRR(R7R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pythas_any_parametersscCst}x|jD]}|jtjkr;|j|n|jdk rf|j|j|jn|j dk r|j|j|j nt |j tj r|j j dk r|j|j|j j qqWg}x-|jD]"}||kr|j|qqW|S(N(tsetRt directionRtPARAM_DIRECTION_OUTtaddt closure_nameRRt destroy_nameR RRtlength_param_nameR(R7Rtskiptparamtparams((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRs '# cCst}x|jD]}|jtjkr;|j|n|jdk rf|j|j|jn|j dk r|j|j|j nt |j tj r|j j dk r|j|j|j j qqWg}|jj jdkrWd}|jj jdkrd}ntj||jj tj}|jj|_|j|nx-|jD]"}||kra|j|qaqaWt|dkrd|d_n|S(NR+t return_valueRtokitReturnsi(RDRRERtPARAM_DIRECTION_INRGRHRRRIR RRRJRBRt ParameterRFRtRRTR(R7RRKRLRMR t ret_param((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pytget_out_parameterss2 '#   cs,j|}djfd|DS(Ns, c3s1|]'}d|jj|jtfVqdS(s%s: %sN(RRRR(R;tp(R7(ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pys s(RRO(R7Rt in_params((R7ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pytformat_in_parametersscswj|}t|dkr%dSt|dkrNj|djtSddjfd|DdSdS(NiR*iR s, c3s1|]'}d|jj|jtfVqdS(s%s: %sN(RRRR(R;RU(R7(ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pys )sR(RTRTRRRRO(R7Rt out_params((R7ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pytformat_out_parameters!s cCst|tjr|jdkr%tS|jr2tSt|jtjrKtS|jj dkrat S|j j |j}|rt|tj r|jjddkr|j|St|tjtjfrt SntSt SdS( NR+R,RR6tva_listiR(Nsnonesgpointersutf8sfilenameRZ(R RRRRRoRnRRRRRjRR(Rt_struct_is_simpleR-R.(R7RRA((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyR,s$   ( cCsM|jst|jdkr"tSx$|jD]}|j|s,tSq,WtS(Ni(R%RTtfieldsRoRR(R7Rtf((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyR[Bs c sK|jjdkr%|jdkr%dS|j}|j}|dk }| rnt|tjrnj|}n|s|dkrt|tj rt j |j }d}t |dkr|d7}x7|D]/}|d|jj|j|j|jf7}qW|d7}n|SdSn,j|}d jfd |DSdS( NtGLibtVariantssignature: String, value: AnyRris{ s+ %s: value t}s, c3s.|]$}d|jj|jfVqdS(s%s: %sN(RRR(R;RU(R7(ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pys is(RR RRRR RR*R[R(RRR\RTRRO( R7RRR t can_allocateR\RR]tconstruct_params((R7ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pytformat_gboxed_constructorKs,!     ' (RaRbRRRR+R"RqR RoRRRRCRRTRWRYRR[Rc(((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRDs*   " &        Rtpythontgjst DocWritercBs5eZdZdZdZdZdZRS(cCsx||_yt|j}Wn$tk rCtd|fnX||j|_|jj|_|j|_ dS(NsUnsupported language: %s( Rjt LANGUAGESRRt SystemExitt _formatterRt _languaget_get_template_lookupt_lookup(R7RlRtformatter_class((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyR8ts  cCs}dtjkr4tjd}tjj|d}ntjjt}tjj|d}td|gdtjddS(Nt UNINSTALLED_INTROSPECTION_SRCDIRt giscannert doctemplatest directoriestmodule_directorytoutput_encodingsutf-8( tostenvirontpathROtdirnamet__file__Rttempfiletmkdtemp(R7t top_srcdirtsrcdirt template_dir((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRks  csaytjWntk r$nXjjjgjjjfddS(Ncsj||S(N(t _walk_node(Rtchain(toutputR7(ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRs(RttmakedirstOSErrorR~RjRtwalk(R7R((RR7ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pytwrites  cCst|tjr%|jdk r%tS|jj|r|j|||t|tj tj fr|j |x$|j D]}|j |||q|W|jntStS(N(R RRtmoved_toRRoRiRqt _render_nodeR(R&RR\R~RRR(R7RRRR]((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyR~s!  c Cs|jj}t||_t|}d|j|f}t|}|jj|}|j d|d|d|d|d|j dt } t j jt j j||d} t| d } | j| | jdS( Ns %s/%s.tmplRRtpage_idt page_kindt formatterRs.pagetw(RjRtlistRR1RjRRlt get_templatetrenderRiRRtRvROtabspathtopenRtclose( R7RRRRRt template_nameRttemplateRutoutput_file_nametfp((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRs"       (RaRbR8RkRR~R(((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyRfss  (RtRJRytxml.saxRt mako.lookupRRrRRtutilsRRoRR1RR2RcRiRRRRRgRf(((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyts,     "@N)