(pos: int)
| 511 | access_regions.append((match.end(), match.group(1))) |
| 512 | |
| 513 | def get_access(pos: int) -> str: |
| 514 | acc = access_regions[0][1] |
| 515 | for r_pos, r_acc in access_regions: |
| 516 | if pos >= r_pos: |
| 517 | acc = r_acc |
| 518 | else: |
| 519 | break |
| 520 | return acc |
| 521 | |
| 522 | # ── Properties ─────────────────────────────────────────────────────────── |
| 523 | # Pattern: optional doc, optional UPROPERTY(...), then type, then name; |