← Về thư mục
scripts/_block_parser.py
- BlockParseError · class · L55-L67 — class BlockParseError(ValueError)
- init · method · L63-L67 — def init(self, kind: str, line_no: int, message: str, hint: str = "")
- Block · class · L71-L84 — class Block
- full_start · method · L83-L84 — def full_start(self) -> int
- ParsedDocument · class · L88-L98 — class ParsedDocument
- block_by_id · method · L93-L94 — def block_by_id(self) -> dict[str, Block]
- next_fresh_id_num · method · L96-L98 — def next_fresh_id_num(self) -> int
- split_lines_keepends · function · L101-L112 — def split_lines_keepends(text: str) -> list[str]
- _strip_eol · function · L115-L116 — def _strip_eol(line: str) -> str
- _is_blank · function · L119-L120 — def _is_blank(line: str) -> bool
- normalize_block_text · function · L123-L130 — def normalize_block_text(lines: list[str]) -> str
- block_hash · function · L133-L135 — def block_hash(normalized_text: str) -> str
- base_draft_hash · function · L138-L140 — def base_draft_hash(raw: bytes) -> str
- atomic_write_bytes · function · L143-L157 — def atomic_write_bytes(path: Path, data: bytes) -> None
- _classify_start · function · L160-L172 — def _classify_start(stripped: str) -> str
- _reject_unsupported_text_line · function · L175-L197 — def _reject_unsupported_text_line(stripped: str, line_no: int, first_of_run: bool) -> None
- parse_document · function · L200-L382 — def parse_document(text: str, *, fragment: bool = False) -> ParsedDocument
- _finish_block · function · L231-L251 — def _finish_block(kind: str, start_line: int, end_line: int) -> None
- segment_fragment · function · L385-L396 — def segment_fragment(new_text: str) -> list[Block]