Utilities/ClassBrowsers/rbclbr.py

changeset 3621
15f23ed3f216
parent 3591
2f2a4a76dd22
child 4021
195a471c327b
equal deleted inserted replaced
3620:2c8d96d47cda 3621:15f23ed3f216
417 cur_obj = cur_class 417 cur_obj = cur_class
418 classstack.append((cur_class, thisindent)) 418 classstack.append((cur_class, thisindent))
419 while acstack and \ 419 while acstack and \
420 acstack[-1][1] >= thisindent: 420 acstack[-1][1] >= thisindent:
421 del acstack[-1] 421 del acstack[-1]
422 acstack.append(["public", thisindent]) # default access control 422 acstack.append(["public", thisindent])
423 # is 'public' 423 # default access control is 'public'
424 424
425 elif m.start("Module") >= 0: 425 elif m.start("Module") >= 0:
426 # we found a module definition 426 # we found a module definition
427 thisindent = indent 427 thisindent = indent
428 indent += 1 428 indent += 1
458 cur_obj = cur_class 458 cur_obj = cur_class
459 classstack.append((cur_class, thisindent)) 459 classstack.append((cur_class, thisindent))
460 while acstack and \ 460 while acstack and \
461 acstack[-1][1] >= thisindent: 461 acstack[-1][1] >= thisindent:
462 del acstack[-1] 462 del acstack[-1]
463 acstack.append(["public", thisindent]) # default access control 463 acstack.append(["public", thisindent])
464 # is 'public' 464 # default access control is 'public'
465 465
466 elif m.start("AccessControl") >= 0: 466 elif m.start("AccessControl") >= 0:
467 aclist = m.group("AccessControlList") 467 aclist = m.group("AccessControlList")
468 if aclist is None: 468 if aclist is None:
469 index = -1 469 index = -1

eric ide

mercurial