Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
_after_signature
codeintel.text._after_signature
PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.
PHAROS at 975a38dMIT license
Around this symbol
Search all symbolsLoading
| Symbol | File | Resolved by |
|---|---|---|
| body_excerpt | text.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| text | text.py | same file |
codeintel.text._after_signaturebackend/app/codeintel/text.py, lines 94–104Open source
def _after_signature(body: list[str], signature: str) -> list[str]: """Drop decorator lines and the lines the (whitespace-collapsed) signature spans.""" i = 0 while i < len(body) and body[i].lstrip().startswith("@") and not signature.lstrip().startswith("@"): i += 1 need = len(_SPACE.sub("", signature)) if signature else 1 seen = 0 while i < len(body) and seen < need: seen += len(_SPACE.sub("", body[i])) or 0 i += 1 return body[i:]What the index recorded
- Signature
def _after_signature(body: list[str], signature: str) -> list[str]:- File
backend/app/codeintel/text.py- Lines
- 94–104
- Parser
- python-ast
- Git blob
74781c9c047d5953611fd7634b2cf29e7661b895- Call sites
- 4 named, 0 resolved, 4 left unlinked
