Qf, ddlZddlZddlZgdZiZGddZGddeZGddeZdd Z dd Z dd Z dd Z dd Z GddejZdZdZedk(reyy)N) readmodule readmodule_exClassFunctionceZdZ dZy)_Objectc||_||_||_||_||_||_i|_|||j |<yyN)modulenamefilelineno end_linenoparentchildren)selfr r r rrrs -/opt/alt/python312/lib64/python3.12/pyclbr.py__init__z_Object.__init__7sL    $   $(FOOD ! N)__name__ __module__ __qualname__rrrrr5s 1 )rrc*eZdZ dddfd ZxZS)rNrc|t|||||||||_t|tr||j |<yyr )superris_async isinstancermethods) rr r r rrrr __class__s rrzFunction.__init__Fs> tVZH  fe $#)FNN4  %r)NFrrrr __classcell__r!s@rrrDs=',*<@**rrc*eZdZ dddfd ZxZS)rNrcRt||||||||xsg|_i|_yr )rrr ) rr r super_r rrrr!s rrzClass.__init__Ps, tVZH\r  rr r"r$s@rrrNs',0rrc P t|j||j||||S)N)rrr)rr r )ob func_namerrrs r_nest_functionr+Ys+0 BIIy"''6Z IIrc P t|j|||j|||S)Nrr)rr r )r) class_namerrrs r _nest_classr/^s)- Jrwwz 33rc i}t||xsgjD]\}}t|ts|||<|Sr ) _readmoduleitemsrr)r pathreskeyvalues rrrdsJ C!&$*"5;;= U eU #CH> Jrc$ t||xsgSr )r1)r r3s rrrps vtzr **rc ||d|}n|}|tvr t|Si}|tjvr | |t|<|S|jd}|dk\rQ|d|}||dzd}t |||}||d|}d|vrt dj |t ||d|Sd} ||} n|tjz} tjj|| } | td|||t|<| j| j|d< | jj|} | |S| jj!|} t#||| | ||S#tt f$r|cYSwxYw)N.r__path__zNo package named {}zno module named )r )_modulessysbuiltin_module_namesrfindr1 ImportErrorformatr3 importlibutil_find_spec_from_pathModuleNotFoundErrorsubmodule_search_locationsloader get_sourceAttributeError get_filename _create_tree)r r3 inpackage fullmoduletreeipackage submodulerf search_pathspecsourcefnames rr1r1zs )62  X ## D)))i.?   SAAv!*1Q34L WdI6  !*G4GV#3::7CD D9fZ&8'BB A SXXo >> . .z; GD |!$4ZN"C*UUHZ &&2::Z'' 3 >K KK $ $Z 0E  D%y II K ( sE""E65E6c6eZdZdZdZdddZdZdZdZy ) _ModuleBrowsercX||_||_||_||_||_g|_yr )r3rNr r rLstack)rr r3r rNrLs rrz_ModuleBrowser.__init__s,    " rc g}|jD]}tj|}||jvr|j |j|Et |j dx}dkDr8|^}}}|tvss|j t|j|||j ||jr|jdnd} t|j|j||j|j| |j}| ||j|j<|jj ||j!||jj#y)Nr9r:r-)basesastunparserNappendlensplitr<getrZrr r r rr generic_visitpop) rnoder]baser names_r class_rs rvisit_ClassDefz_ModuleBrowser.visit_ClassDefs'JJD;;t$Dtyy  TYYt_-djjo-U.2&+"FFX%LL&!1!5!5fd!CD T"$(::B4t{{DIIudii$B >#)DIIdii  &! 4  rFrc |jr|jdnd}t|j|j|j|j |||j }|||j|j<|jj||j||jjy)Nr\r) rZrr r r rrrNr`rdre)rrfrrfunctions rvisit_FunctionDefz _ModuleBrowser.visit_FunctionDefs#'::B4DKKDIIt{{"HJ >#+DIIdii  (# 4  rc*|j|dy)NTrl)ro)rrfs rvisit_AsyncFunctionDefz%_ModuleBrowser.visit_AsyncFunctionDefs td3rc|jdk7ry|jD]/} t|j|j|j 1y#t $rt|jgY$wxYw#t tf$rYiwxYw)Nr) col_offsetrhr1r r3rLr@ SyntaxError)rrfr s r visit_Importz_ModuleBrowser.visit_Importsy ??a  jjF 1 TYYG!#1 R01-  s)+AA2/A51A22A55BBc |jdk7ry d|jz}|jr||jz }t||j|j }|jD]}|j|vr5||j|j|jxs |j<F|jdk(sV|jD]&\}}|jdr||j|<(y#t tf$rYywxYw)Nrr9*ri)rslevelr r1r3rLr@rtrhr rNasnamer2 startswith)rrfr r import_name import_values rvisit_ImportFromz_ModuleBrowser.visit_ImportFroms ??a   4::%F{{$++% DNNCFJJDyyF"6z_main.."s 71h2rT)r5reverseindentz{}class {} {} {} z {}def {} {})osr=argv__file__r3existsdirnamebasenamelowerendswithrsortedvaluesrerlisthasattrrrrextendrprintrAr rrr) rmodr3rN lineno_keyobjs indent_levelobjnew_objsr)s r_mainrsE hhqk ww~~c$%ggs# 99;   &cr(C d #D2J $++-Z >DL hhj c4 sH%CJ c7 #cll113",drs)V  >  ) )*w*GI 3 +=J@P:S__P:f $PL z Gr